HexBrain

SMTP2GO BBP · Report #1536299

Origin IP found, WAF Cloudflare Bypass

Validstatus
lowseverity
$100bounty
53upvotes
15 May 2022disclosed

Summary

Cloudflare WAF (Web Application Firewall) is a security service that helps protect web applications from various types of attacks, including SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF). Cloudflare WAF operates by inspecting incoming HTTP/HTTPS traffic and applying a set of rules to block or allow requests based on their characteristics.

Bypassing Cloudflare WAF based on origin IP involves exploiting a weakness in the WAF configuration to bypass its security measures and access the origin server directly. This can be achieved by identifying the origin IP address of the web application and crafting requests that bypass the WAF and are sent directly to the origin server.

How it was found

Description: I have discovered that the http://172.105.190.180/login/ site exposed it's IP which could allow bypassing of anti-DDoS mechanisms i.e you are using Cloudflare for protection. For Originate IP address which I found from https://search.censys.io/

By using these IP address as a resolver instead of the intended addresses I'm able to access the service without going through the WAF, thus I'm able to forward unfiltered payloads to the service, as well as avoiding the common protections offered by Cloudflare, also being able to perform crippling denial-of-service towards the origin.

Suggestion: My recommendations fall in line with Cloudflare's own guidelines: the Origin server must communicate exclusively with Cloudflare's IP address ranges, otherwise--as reported in this post on Cloudflare's blog, the protection offered by having a reverse proxy basically becomes useless. IP 1 172.105.190.180 2 139.162.232.147 Files Attached

Impact

As reported in many other submissions, Cloudflare bypasses can have a significant impact, as any adversary is now able to communicate with the origin server directly, enabling them to perform unfiltered attacks (such as denial-of-service), and data retrieval

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original