Skip to content
Access control Write-up Beginner

The Uppercase Escape: Breaking Endpoint Restrictions via Case-Sen

An API endpoint intended to be forbidden returned sensitive operational metrics when the path was requested with uppercase letters instead of lowercase. An attacker could read internal monitoring data that was meant to be restricted.

Muthu Follow

Published on infosecwriteups.com

While performing a standard API assessment on example.com, I stumbled upon a classic yet overlooked trick that turned a restricted API into an open door — just by changing lowercase to uppercase letters.

Muthu, on infosecwriteups.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 the authorization check only matched the lowercase path while the backend routing treated uppercase and lowercase paths as the same endpoint.

Impact

An unauthorised user could read operational metrics, which may include system performance data, uptime, internal addresses or debug information, and similar endpoints may be exposed in the same way.

What the attacker needed

Network access to the API; no account needed

The fix

The endpoint should enforce case-insensitive path matching in its authorization checks, or normalise paths before access control is applied.

How it was found

  1. Request the metrics endpoint in lowercase and observe a forbidden response.
  2. Request the same endpoint with uppercase letters and observe a successful response.

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 website often decides whether you are allowed to see a page by looking at the address you type. Here, the address was blocked when written in lowercase, but the same page was allowed when written in uppercase. That let someone see private system information that should have been hidden.

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 Muthu

View all

2 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.