Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crdzbird/secured-sql
This SQL was created with the purpose to give that extra security that sometimes is needed in the Database.
https://github.com/crdzbird/secured-sql
databases plpgsql security-tools tsql
Last synced: about 2 months ago
JSON representation
This SQL was created with the purpose to give that extra security that sometimes is needed in the Database.
- Host: GitHub
- URL: https://github.com/crdzbird/secured-sql
- Owner: Crdzbird
- License: gpl-3.0
- Created: 2019-10-23T20:56:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-29T01:32:40.000Z (over 4 years ago)
- Last Synced: 2024-11-11T08:07:46.212Z (about 2 months ago)
- Topics: databases, plpgsql, security-tools, tsql
- Language: TSQL
- Homepage:
- Size: 42 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Secured-SQL
One thing that i was always wish to develop was a way to secure all the procedures in the database.As you know even the most efficients programs has some issues related with security, some are in the backend others in the client side, but almost no one take care of the DB side.
So that's why this project was developed.
You can add the functions to any part or even call it from your Backend and sanitize.
- SQL-INJECTIONS
- XSS
- EMPTY VALUES
- Tags with Attributes included!## Examples
When you call this function into any statement, it's gonna filter each character and set the respective value according to the delimeters specified inside str_clean()
```sql
select 'DEMO' as returns, str_clean('DEMO', true, true, true, true, true, true, true);
```| returns | str_clean |
| ------ | ----------- |
| DEMO | DEMO |
```
select 'DEMO123 demos' as returns, str_clean('DEMO
123 demos', true, true, true, true, true, true, true);
```| returns | str_clean |
| ------ | ----------- |
| DEMO123 demos |```DEMO
123 demos ```|```
select 'DEMO123 456 7' as returns, str_clean(' DEMO 1234 56 7', true, true, true, true, true, true, true);
```| returns | str_clean |
| ------ | ----------- |
| DEMO123 456 7 |``` DEMO 1234 56 7``` |```
select 'DEMOnds/5' as returns, str_clean('DEMO\n\ds/5', true, true, true, true, true, true, true);
```| returns | str_clean |
| ------ | ----------- |
| DEMOnds/5 | ```DEMO\n\ds/5``` |```
select '¿Is this a demo?' as returns, str_clean('¿Is this a demo?', true, true, true, true, true, true, true);
```| returns | str_clean |
| ------ | ----------- |
| ¿Is this a demo? | ```¿Is this a demo?``` |DONE:
- [x] MYSQL
- [x] POSTGRESQL
- [x] SQL-SERVERTODO:
- [ ] ORACLE
- [ ] JSON VALIDATIONS
- [ ] ARRAYS VALIDATIONS### Contributing
All contributions are welcome!
If you like this project then please click on the :star: it'll be appreciated or if you wanna add some functionality you can submite your pull request :)
or if you have an idea please let me know to my email: .