A penetration tester reports that an exploit attempt is blocked through your public hostname but reaches the application when sent directly to its origin address. Adding another detection rule will not close that route. The first decision is architectural: should the origin accept Internet traffic independently, or accept application traffic only through the intended inspection path?
For security owners considering how to close a waf bypass found during a penetration test, this distinction matters during active exploitation of newly disclosed application vulnerabilities. An attacker can automate requests against both a protected hostname and a discovered origin address. A reachable origin gives those requests another entrance.
The following is a validation scenario, not a report of a specific incident.
Choice A: Route DNS through the WAF but leave the origin public
SafeLine operates as an HTTP/HTTPS reverse proxy: it receives requests and forwards traffic to the original application. Its application configuration includes a domain, a listening port, and an upstream address. The documented setup then directs the application's domain name to the SafeLine server's IP address. See the official application configuration guide.
That establishes a protected route. It does not, by itself, demonstrate that every alternative route is closed.
Suppose the origin still accepts public HTTPS connections. An attacker who knows its address may connect there directly while supplying the application's expected hostname. Whether that works depends on the origin's network access, TLS handling, and virtual host configuration. DNS changes alone do not enforce the path a client must take.
The defender might see a blocked request in the WAF console, followed by a corresponding direct request in origin access logs with no matching WAF record. Missing records alone are insufficient evidence: timestamps, logging coverage, and request correlation need checking. The stronger finding is a controlled request that demonstrably reaches the application through the alternate route.
This choice can be convenient during migration, but it leaves protection dependent on which entrance an attacker chooses.
Choice B: Restrict origin access to the intended proxy path
The stronger arrangement makes the origin reachable only from authorized infrastructure that forwards inspected traffic. Depending on your environment, enforce that with network firewall rules, security groups, private networking, or equivalent infrastructure controls. These are deployment decisions, not claims about an automatic SafeLine feature.
Define the legitimate upstream connection sources before changing access rules. If another load balancer sits between SafeLine and the application, the origin may observe that balancer as its immediate peer. Document the entire chain and verify that the balancer itself cannot provide an uninspected public entrance.
Do not treat a client-supplied forwarding header as proof that a request passed through the WAF. The access decision needs an enforceable trust boundary.
Inventory alternate ports, IPv6 listeners, legacy hostnames, and administrative endpoints. Preserve required health checks and operational access through explicitly authorized paths. Then restrict access and repeat the tester's direct-origin request from an external network.
Turn the finding into a closure test
Use a short evidence matrix with these checks:
- Protected route: Replay the authorized test through the public hostname. Record the request, response, timestamp, and relevant WAF evidence.
- Direct route: Repeat against the origin using the same hostname and TLS context where applicable. Confirm that unauthorized traffic cannot reach the application.
- Alternate entrances: Check every in-scope address, protocol, and port identified during the assessment.
- Business traffic: Verify representative authenticated requests, API calls, uploads, and required health checks.
SafeLine's documentation describes viewing the attack list in its web console and opening an entry's details. Use that documented evidence alongside origin and infrastructure logs; a blocking page alone cannot establish that alternate paths are closed. See the official testing instructions.
If the request passed through SafeLine and still triggered vulnerable behavior, investigate a different branch: application mapping, inspection behavior, and how the backend interprets the request. Preserve the exact request bytes and compare the observed behavior at each hop. Restricting origin access cannot resolve an inspection bypass on the intended route.
Does changing DNS close a WAF bypass?
Only if the reported problem was routing and no alternate entrance remains. Verify direct reachability independently; DNS points clients toward a destination but does not prevent connections elsewhere.
What evidence should the penetration tester provide?
Ask for the destination address, port, hostname, TLS context, exact request, response, and demonstrated application effect. That separates a route around inspection from a request that passed through inspection undetected.
Should we add a WAF rule or patch the application?
Patch the underlying vulnerability wherever possible. A narrowly scoped defensive rule may provide interim protection, but it cannot inspect traffic that bypasses the WAF entirely. Close the alternate route as a separate action.
When is the finding ready to close?
When the original reproduction fails for the intended reason, unauthorized alternate routes are inaccessible, and legitimate workflows still succeed. Retain the before-and-after evidence and assign ownership for keeping origin access restricted.
SafeLine has surpassed 700,000 installations worldwide as of September 30, 2026. SafeLine Pro annual promotional pricing is $650-$880, compared with the regular $1,000 per year.
- SafeLine website: https://ly.cyberserval.tech/bvK1BAV
- Demo: https://demo.waf.chaitin.com:9443/statistics
- Official docs: https://docs.waf.chaitin.com/en/home
- GitHub: https://github.com/chaitin/SafeLine
- Pro offer: https://cyberserval.tech/landing/lto
Top comments (0)