Skip to content

Adds support for ctl:requestBodyProcessor=URLENCODED #1807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Adds support for ctl:requestBodyProcessor=URLENCODED #1807

wants to merge 2 commits into from

Conversation

victorhora
Copy link
Contributor

Adds support for URLENCODED body processor as defined at WWWFormUrlEncoded. Should fix #1797

@zimmerle
Copy link
Contributor

https://gist.github.com/zimmerle/2e047fb9f60bce10a5596d1d2995bac4

@@ -27,7 +27,7 @@ namespace ctl {

bool RequestBodyProcessorURLENCODED::evaluate(Rule *rule,
Transaction *transaction) {
transaction->m_requestBodyProcessor = Transaction::WWWFormUrlEncoded;
transaction->m_requestBodyType = Transaction::WWWFormUrlEncoded;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @zimmerle, although the configuration was being accepted by the parser, there was a problem with the pull request as the condition to actually extract the arguments was not being satisfied due to the usage of the m_requestBodyType as opposed to m_requestBodyProcessor variable which is used for the XML and JSON body processors. My bad 😋

NixM0nk3y added a commit to NixM0nk3y/ModSecurity that referenced this pull request Aug 14, 2018
victorhora added a commit that referenced this pull request Aug 23, 2018
@victorhora
Copy link
Contributor Author

Merged as of f999f54 and aa158ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModSecurity 3.0 fails with ctl:requestBodyProcessor=URLENCODED
2 participants