Bishop Fox’s Approach to Responsible Disclosure
The Imperva Cloud WAF failed to inspect HTTP POST request bodies when the Content-Encoding header was set to gzip, even if the body was not actually compressed. An attacker could bypass WAF rules and send malicious payloads such as Log4j exploits, SQL injection, command execution, directory traversal, and XXE.
bishopfox.com
Published on bishopfox.com
During a recent investigation, the Bishop Fox Cosmos Adversarial Operations experts identified a WAF rule bypass in the Imperva Cloud Web Application Firewall. Through our coordinated Responsible Disclosure Process, Bishop Fox notified Imperva, kicking off a great collaboration between teams to share information about…
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
Impact
Attackers could evade WAF rules and deliver malicious payloads such as Log4j exploits, SQL injection, command execution, directory traversal, and XXE; the bypass was specific to the Imperva Cloud WAF and was fixed globally.
What the attacker needed
Target uses Imperva Cloud WAF; Ability to send HTTP POST requests
The fix
Imperva developed and deployed a patch to its global network, automatically patching all Cloud WAF customers.
How it was found
- Send a baseline POST request with harmless data to confirm normal behaviour.
- Send the same POST request with malicious data in the body to verify the WAF blocks it.
- Add the header Content-Encoding: gzip to the malicious request and verify the WAF does not block it.
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 requests and blocks ones that look malicious. In this case, the WAF stopped checking the content of POST requests if they claimed to be compressed with gzip, even when they were not. That let attackers sneak harmful code past the WAF.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.