Created
December 11, 2021 01:19
-
-
Save wrossmann/c953e0e07a8617da45dcd64190f35ada to your computer and use it in GitHub Desktop.
Nginx config to filter out requests and User-Agents that contain LogJam jndi strings.
This file contains hidden or 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
if ( $http_user_agent ~* "\${jndi:" ) { | |
return 400; | |
} | |
if ( $request_uri ~* "(\$|%24)({|%7b)(j|%6a)(n|%6e)(d|%64)(i|%69)(:|%3a)" ) { | |
return 400; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment