Apache · Mod Proxy · CVE-2024-7012
**Name of the Vulnerable Software and Affected Versions**
Foreman versions 6.13 through 6.15
Foreman with Gunicorn versions prior to 22.0
**Description**
An authentication bypass issue has been identified in Foreman when deployed with External Authentication, due to the puppet-foreman configuration. This issue arises from Apache's mod proxy not properly unsetting headers because of restrictions on underscores in HTTP headers, allowing authentication through a malformed header. The flaw impacts all active Satellite deployments and could potentially enable unauthorized users to gain administrative access. Over 4,000 results are found on ZoomEye, indicating a significant number of potentially affected devices.
**Recommendations**
For Foreman versions 6.13 through 6.15, update to a version that includes the fix for this issue.
For Foreman with Gunicorn versions prior to 22.0, update Gunicorn to version 22.0 or later.
As a temporary workaround, consider restricting access to the `puppet-foreman` configuration to minimize the risk of exploitation.
Restrict access to the vulnerable `mod proxy` module to minimize the risk of exploitation.
Avoid using malformed headers in the affected API endpoints until the issue is resolved.