Skip to content

Commit

Permalink
Merge pull request #7 from flant/fix-regex
Browse files Browse the repository at this point in the history
Fix security issue in regex
  • Loading branch information
nabokihms authored Sep 4, 2019
2 parents 36fdc17 + b531d01 commit 0344716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ http {
ssl_verify_client on;
location ${LOCATION} {
if (\$ssl_client_s_dn_cn !~ "${USER}") {
if (\$ssl_client_s_dn_cn !~ "^${USER}$") {
return 403;
}
proxy_http_version 1.1;
Expand Down

0 comments on commit 0344716

Please sign in to comment.