Skip to content
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

Fix: MULTIPART_INVALID_PART connected to wrong internal variable #2785

Merged
merged 1 commit into from
Aug 18, 2022
Merged

Conversation

martinhsv
Copy link
Contributor

Despite this bug, MULTIPART_STRICT_ERROR was still being set correctly in this case. However, the 'msg' action in rule 200003 in modsecurity.conf-recommended would not show 'IP 1' properly.

@martinhsv martinhsv merged commit 7b094ea into owasp-modsecurity:v3/master Aug 18, 2022
@elexito
Copy link

elexito commented Mar 7, 2023

I keep getting this error -

Unknown variable: &MULTIPART_PART_HEADERS

Please how do I update my modsecurity version?

Anytime I run sudo yum install mod_security or sudo apt install libapache2-mod-security2, it does not install the latest version which is v3.0.8

@martinhsv
Copy link
Contributor Author

martinhsv commented Mar 7, 2023

Hello @elexito ,

There are two actively-maintained branches of ModSecurity: v2 (for use with Apache HTTP Server and IIS) and v3 (for use with nginx).

If you are using Apache, the latest version of ModSecurity for that is v2.9.7. MULTIPART_PART_HEADERS is supported in versions beginning with ModSecurity v2.9.6.

To use a more recent version of ModSecurity than what is available via apt, the main option is to build the software yourself. There are a number of online guides for this. For example: https://hostadvice.com/how-to/how-to-setup-modsecurity-for-apache-on-ubuntu-18-04/

@elexito
Copy link

elexito commented Mar 8, 2023 via email

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

Successfully merging this pull request may close these issues.

2 participants