Skip to content

Commit

Permalink
Fix security issue in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Stolyarov authored Sep 2, 2019
1 parent 36fdc17 commit b531d01
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 b531d01

Please sign in to comment.