Skip to content
Access control Write-up Intermediate

How a Single ;/ Bypassed a Cloud WAF and Reached Protected Spring

The cloud WAF and the Spring Boot backend interpreted URL paths differently, so a path containing a semicolon segment was allowed by the WAF but normalised by Spring to the protected endpoint. An attacker could reach sensitive backend routes that the WAF was supposed to block.

Alareqi Follow

Published on medium.com

Most WAF bypasses involve encoding tricks, obscure headers, or parser confusion.

Alareqi, on medium.com

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 a parser discrepancy: the WAF matched rules against the raw path while Spring Boot normalised semicolon matrix variables and routed the request to the protected endpoint.

Impact

The WAF's path-based protections could be bypassed for any blocked endpoint, potentially exposing sensitive, debug or admin routes that rely on edge filtering.

What the attacker needed

Target behind a path-based WAF; Spring Boot backend using matrix variables; No authentication needed to observe the difference

The fix

Requests should be normalised consistently before security rules are evaluated, semicolons in paths should be rejected if matrix variables are not needed, and sensitive endpoints should always enforce authentication and authorisation at the application layer.

How it was found

  1. Send a request to a protected path and observe a 403 from the WAF.
  2. Insert a semicolon segment into the path and observe a 500, showing the request reached the backend.
  3. Repeat with other blocked paths to confirm the bypass is general.

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 filter that sits in front of a website and blocks requests to sensitive paths. Here the filter looked at the raw path and saw something harmless, but the application behind it cleaned up the path and treated it as a protected admin route. Because the two disagreed, the filter let through requests it meant to stop.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Alareqi

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.