Bypassing Imperva SecureSphere WAF (CVE-2023-50969)
Imperva SecureSphere WAF could be bypassed by sending multiple Content-Encoding headers, allowing an attacker to deliver malicious POST data that would otherwise be blocked. This could enable exploitation of vulnerabilities in protected applications.
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the WAF mishandles requests with multiple Content-Encoding headers, failing to properly decode or inspect the body when an unrecognised encoding is listed first.
What the attacker needed
Target protected by Imperva SecureSphere WAF; WAF version without the ADC update; Attacker can send HTTP requests
The fix
The issue was fixed by an Application Defense Center (ADC) rule update released on February 26, 2024.
How it was found
- Send a POST request with a malicious command in the body; the WAF blocks it.
- Add a Content-Encoding header with an arbitrary value followed by a Content-Encoding: gzip header.
- Send the same request again; the WAF no longer blocks it.
- For some rules, also add a throwaway POST parameter before the malicious parameter.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A web application firewall (WAF) is a security tool that inspects incoming web traffic and blocks requests that look malicious. This report shows that by adding extra headers to a request, an attacker can trick the WAF into not inspecting the request body properly, so malicious commands get through. The WAF vendor released an update to fix the issue.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.