Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/9dl/awesome-sanitizers
Awesome Sanitizers for every language to prevent injection attacks effortlessly.
https://github.com/9dl/awesome-sanitizers
List: awesome-sanitizers
decoding disallowed-chars injection injection-attack injection-attacks parameter protect sanitization sanitize sanitizers
Last synced: about 2 months ago
JSON representation
Awesome Sanitizers for every language to prevent injection attacks effortlessly.
- Host: GitHub
- URL: https://github.com/9dl/awesome-sanitizers
- Owner: 9dl
- Created: 2024-11-28T16:08:57.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T16:35:00.000Z (2 months ago)
- Last Synced: 2024-11-28T17:28:49.901Z (2 months ago)
- Topics: decoding, disallowed-chars, injection, injection-attack, injection-attacks, parameter, protect, sanitization, sanitize, sanitizers
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Awesome-Sanitizers 🔒
A collection of sanitizer implementations across multiple programming languages, designed to prevent injection attacks by cleaning and decoding user input. 🚫
## Features ✨
- **HTML Decoding**: Automatically decodes HTML entities (e.g., `<` → `<`).
- **Disallowed Character Removal**: Removes dangerous characters 🛑.
- **Space Trimming**: Removes spaces from the start and end of input ✂️.
- **Multi-Language Support**: Includes sanitizer implementations in multiple languages (e.g., Go, C#) 🌍.## Languages 🖥️
The repository contains sanitizers implemented in the following languages:
- **Go**: Available in `golang/`
- **C#**: Available in `csharp/`
- **Py**: Available in `python/`
- *(More languages coming soon!)*## Usage 💻
Each language folder contains its own implementation. To use a sanitizer in your project, simply copy the implementation into your codebase and call the `Sanitize` function with the input you want to sanitize.
### Example 📋
```bash
Original: %27; DROP TABLE users;
Sanitized: DROP TABLE users
```## Contributing 🤝
1. Fork the repository.
2. Create your feature branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Open a pull request to merge your changes.