1
0
Fork 0
mirror of https://github.com/swisskyrepo/PayloadsAllTheThings.git synced 2024-05-09 11:46:14 +02:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Christopher Harrop 443d3046bd
Merge 8a3e5d1fc9 into 53d9014b2b 2024-04-25 19:32:24 +02:00
Swissky 53d9014b2b Regular Expression ReDoS 2024-04-25 17:37:16 +02:00
Christopher Harrop 8a3e5d1fc9
Update README.md
Add code block wrapping
2024-04-23 14:10:03 +01:00
Christopher Harrop 94baa35f97
Update README.md
Add bypass with url-encoded new line char
2024-04-23 14:02:34 +01:00
Christopher Harrop f8732d75b2
Update README.md
Add item for bypass script tags using new line characters
2024-04-23 12:28:55 +01:00
3 changed files with 45 additions and 0 deletions

View File

@ -75,6 +75,7 @@ Use : https://github.com/ozguralp/gmapsapiscanner/
Impact:
* Consuming the company's monthly quota or can over-bill with unauthorized usage of this service and do financial damage to the company
* Conduct a denial of service attack specific to the service if any limitation of maximum bill control settings exist in the Google account

View File

@ -0,0 +1,36 @@
# Regular Expression
> Regular Expression Denial of Service (ReDoS) is a type of attack that exploits the fact that certain regular expressions can take an extremely long time to process, causing applications or services to become unresponsive or crash.
## Denial of Service - ReDoS
* [tjenkinson/redos-detector](https://github.com/tjenkinson/redos-detector) - A CLI and library which tests with certainty if a regex pattern is safe from ReDoS attacks. Supported in the browser, Node and Deno.
* [doyensec/regexploit](https://github.com/doyensec/regexploit) - Find regular expressions which are vulnerable to ReDoS (Regular Expression Denial of Service)
* [devina.io/redos-checker](https://devina.io/redos-checker) - Examine regular expressions for potential Denial of Service vulnerabilities
### Evil Regex
Evil Regex contains:
* Grouping with repetition
* Inside the repeated group:
* Repetition
* Alternation with overlapping
**Examples**
* `(a+)+`
* `([a-zA-Z]+)*`
* `(a|aa)+`
* `(a|a?)+`
* `(.*a){x}` for x \> 10
These regular expressions can be exploited with `aaaaaaaaaaaaaaaaaaaaaaaa!`
## References
* [Regular expression Denial of Service - ReDoS - OWASP - Adar Weidman](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)
* [OWASP Validation Regex Repository - OWASP](https://wiki.owasp.org/index.php/OWASP_Validation_Regex_Repository)

File diff suppressed because one or more lines are too long