Skip to content

Commit

Permalink
bypass admin post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-bjoern authored Dec 5, 2024
1 parent 62756f7 commit 092f499
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion values_waf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ varnish:
# return (pass);
# }
# bypass WAF
if (req.http.cookie ~ "admin=" && req.method == "POST") {
set req.backend_hint = magento_director.backend("magento-headless");
}
# We only deal with GET and HEAD by default
if (req.method != "GET" && req.method != "HEAD") {
return (pass);
Expand Down Expand Up @@ -460,4 +465,4 @@ waf:
SecRuleRemoveByTag "platform-sybase"
SecRuleRemoveByTag "platform-tomcat"
SecRuleRemoveByTag "platform-windows"
EOF
EOF

0 comments on commit 092f499

Please sign in to comment.