Skip to content

Support configurable limit on number of arguments processed #2844

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

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

martinhsv
Copy link
Contributor

This is the ModSecurity v2 implementation of the SecArgumentsLimit configuration item, which was previously implemented in ModSecurity v3.

The limit is configurable via the new directive but there is a software default of 1000.

Exceeding the limit will set REQBODY_ERROR and additional arguments beyond the limit will not be included. With JSON body processing there is an additional short-circuit to halt parsing once the limit is breached.

@martinhsv martinhsv added the 2.x Related to ModSecurity version 2.x label Dec 14, 2022
@martinhsv martinhsv merged commit 9d4b426 into owasp-modsecurity:v2/master Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to ModSecurity version 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant