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

CVE-2024-38474 in Apache and UnsafeAllow3F addition #192

Open
romanstech opened this issue Aug 25, 2024 · 3 comments
Open

CVE-2024-38474 in Apache and UnsafeAllow3F addition #192

romanstech opened this issue Aug 25, 2024 · 3 comments

Comments

@romanstech
Copy link

RHEL8.10, OMD 5.4

After the latest RHEL update it's not possible to enter to OMD — receive 403 Forbidden.
It's because of new vulnerability CVE-2024-38474 in Apache.

Root Cause
A substitution encoding issue in mod_rewrite allows an attacker to execute scripts in directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant only to be executed as CGI. This is the CVE-2024-38474.

Temporary solution:
Add UnsafeAllow3F flag to 1 row in file etc/apache/conf.dthruk_cookie_auth.conf:
RewriteRule ^(.*)$ ${users:$1|/loginbad/} [C,NS,UnsafeAllow3F]

Permanent solution:
Update Apache in OMD to v.2.4.60+

@sni
Copy link
Contributor

sni commented Aug 26, 2024

thanks for reporting this. It should be fixed already in the nightly builds starting Aug 15th.

Seems like rhel patched a bit too hard because the error triggered even on pages not containing escaped question marks. So on rhel8/9 all pages fail with the error.
On newer Ubuntu systems only saving bookmarks in Thruk was broken. This has been fixed with

@romanstech
Copy link
Author

romanstech commented Aug 26, 2024 via email

@romanstech
Copy link
Author

In any case, amazing work! I used Nagios for years but now I really love using OMD.

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

No branches or pull requests

2 participants