Skip to content
Access control Write-up Beginner

Accidentally typo to bypass administration access

A mobile site exposed an administration page that could be reached without logging in by altering the URL path. An attacker could view administrative content without any credentials.

yappare Follow

Published on c0rni3sm.blogspot.com

The original lives on c0rni3sm.blogspot.com

We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The write-up is short and describes a mobile application that exposes a small set of features to unauthenticated users:

  • a query for available item
  • a view for the available schedule
  • information about a certain item
  • no login

The researcher's closing advice notes that a simple-looking application may still contain a hidden administration page. The title refers to an accidental typo leading to the bypass.

The only code in the report is a JavaScript snippet that sets an attribute on an element, presumably part of the mobile page's client-side logic:

JavaScript
<script type="text/javascript">
   var attr = "href";
   var value = "/mobileapps";
   elem.setAttribute(attr, value);
</script>

The report does not give the request that reached the administration page, the exact typo, the server response, the affected host, a severity rating, a bounty amount or a fix. It stops at the observation that a typo led to administration access, followed by four lessons the researcher drew from it.

Root cause

The report does not explain the mechanism behind the typo-based bypass.

Impact

The report does not enumerate what those functions allowed, so the practical impact beyond access to the page is not documented.

How this kind of bug works

Access control is usually enforced in one of two places: a central middleware that checks the session before dispatching to a handler, or per-handler checks. Both fail in predictable ways.

With central middleware, the check is often bound to a path prefix or a route pattern. If the router normalises, rewrites or case-folds paths after the check, a request that does not match the protected pattern can still reach the protected handler. Trailing slashes, doubled slashes, path parameters, encoded characters, case differences and simple misspellings are all ways to produce a path that the router resolves to the admin handler while the authorisation rule does not recognise it.

With per-handler checks, the failure is usually a handler that was added or refactored without the check, or a client-side check that the server never repeats.

The defence is to authorise on the resolved route, not on the raw string, and to deny by default so that an unmatched path never falls through to a privileged handler.

How to test for it

  1. Map the application as an unauthenticated user. Record every path the client requests, including those built in JavaScript, and every path the server answers.
  2. Identify administrative or privileged paths from the client code, from error messages, from directory naming conventions and from the site's own links.
  3. Request those paths without a session and confirm the expected denial. A redirect to login or a 403 is the baseline.
  4. Vary the path while keeping the same handler in mind: add and remove a trailing slash, double a slash, change case, append a path parameter or a dot segment, and try small misspellings of the segment names. Send each variant unauthenticated and compare status codes, response sizes and bodies.
  5. A positive result is a variant that returns the privileged content, a different status from the baseline, or a response that no longer contains the login redirect.
  6. Repeat the same variations on the mobile site and on any API host, since routing rules often differ between them.

Common false positives: a 200 response that is only the login page rendered with a different status, a generic error page of the same size as the baseline, or a cached response. Compare the body, not just the status, and confirm that the content is genuinely privileged rather than a public shell.

How it is fixed

  • Enforce authorisation after routing, on the resolved handler, so path variants cannot skip the check.
  • Deny by default: any route without an explicit rule should require authentication.
  • Normalise paths consistently before both the authorisation check and the dispatch, and reject ambiguous forms rather than guessing.
  • Do not rely on client-side hiding of administrative links; the server must refuse the request regardless of what the interface shows.
  • Add tests that request privileged routes with path variants and assert denial.

Hunting notes

This class of bug hides where routing is complex: applications with both a desktop and a mobile front end, separate API hosts, client-side routers that build URLs in JavaScript, and older frameworks with per-handler checks. Recon signals worth following are JavaScript that assembles paths from string fragments, admin-looking segments in bundled code, and differences between how the main site and the mobile site respond to the same path.

To make a report accepted, show the unauthenticated request, the response proving privileged content, and the contrast with the correctly protected path. State clearly what the page allowed, since access alone may be judged low impact.

The researcher's closing advice: test the mobile environment and the mobile site, do not give up on a simple-looking application because a hidden administration page may be in it, and if the response looks weird, try to bypass.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

This report is about a mobile application that let people use a few features without logging in at all. The researcher, yappare, lists what was available to anyone:

  • a query for available item
  • a view for the available schedule
  • information about a certain item
  • no login

In other words, the app had no sign-in step for these screens. That alone is not necessarily a bug: plenty of apps show public information to everyone. The researcher's advice suggests a simple-looking application probably contains a hidden administration page. An administration page is the part of a site or app where the people who run it manage things, and it is normally protected by a login. Here it was reachable without one.

The title says the bypass came from an accidental typo. A typo is simply a small spelling mistake, for example a wrong letter or a missing one in a web address. The title says an accidental typo led to bypassing administration access. The report does not say what the typo was, which address was involved, or what the server sent back.

The only code in the report is a short JavaScript snippet, which appears to be part of the mobile page's own logic:

JavaScript
<script type="text/javascript">
   var attr = "href";
   var value = "/mobileapps";
   elem.setAttribute(attr, value);
</script>

Line by line:

  • <script type="text/javascript"> starts a block of JavaScript, the language browsers run to make pages interactive.
  • var attr = "href"; stores the text href in a variable called attr. href is the attribute of a link that holds its destination address.
  • var value = "/mobileapps"; stores the path /mobileapps in a variable called value.
  • elem.setAttribute(attr, value); takes an element on the page, called elem, and sets its href to /mobileapps. In plain terms, the page builds a link in the browser instead of writing it in the page's HTML.
  • </script> closes the block.

The snippet builds a link in the browser rather than in the page's HTML; the report does not explain its role in the bypass.

The report ends with four lessons the researcher drew from the finding:

  1. Do not forget to test in a mobile environment.
  2. Do not forget to test the target's mobile site.
  3. Do not give up if the application looks really simple, because there is probably a hidden administration page in it.
  4. Look at the application's response. If it looks weird, try to bypass.

In general, how this kind of bug works

A web application decides who may see what through access control. Think of a building with a reception desk: the desk checks your badge before letting you past. In a web app, that check usually happens in one of two places. Either a central piece of code checks every request before passing it to the right handler, or each individual handler does its own check. A handler is the piece of server code that produces a particular page or answer.

Both arrangements fail in predictable ways. With a central check, the rule is often tied to a pattern in the address, such as a path prefix. If the server tidies up, rewrites or changes the case of addresses after the check, a request that does not match the protected pattern can still reach the protected handler. Trailing slashes, doubled slashes, extra path segments, encoded characters, differences in capital letters and simple misspellings can all produce an address that the server resolves to the admin handler while the access rule does not recognise it. With per-handler checks, the usual failure is a handler that was added or changed without the check, or a check that only exists in the browser and is never repeated on the server.

The server must refuse the request no matter what the interface shows.

The fix is to authorise on the address the server has actually resolved, not on the raw text the browser sent, and to deny by default, so that an address nobody wrote a rule for never falls through to something privileged.

In general, how to test for it

  1. Explore the application as a logged-out user. Write down every address the browser requests, including ones built in JavaScript, and every address the server answers.
  2. Spot administrative or privileged addresses from the page code, from error messages, from naming habits and from the site's own links.
  3. Request those addresses without logging in and confirm they are refused. A redirect to a login page or a "forbidden" response is your baseline, the normal behaviour you compare against.
  4. Vary the address while aiming at the same handler: add and remove a trailing slash, double a slash, change capitalisation, append an extra path segment or a dot segment, and try small misspellings of the segment names. Send each variant logged out and compare status codes, response sizes and page content.
  5. A positive result is a variant that returns the privileged content, a different status from the baseline, or a response that no longer contains the login redirect.
  6. Repeat the variations on the mobile site and on any separate API host, because routing rules often differ between them.

Watch for false positives: a 200 response that is only the login page shown with a different status, a generic error page the same size as the baseline, or a cached response. Compare the body, not just the status, and confirm the content is genuinely privileged rather than a public shell.

In general, how it is fixed

  • Enforce authorisation after routing, on the resolved handler, so address variants cannot skip the check.
  • Deny by default: any route without an explicit rule should require authentication.
  • Normalise addresses consistently before both the check and the dispatch, and reject ambiguous forms rather than guessing.
  • Do not rely on hiding administrative links in the browser; the server must refuse the request regardless of what the interface shows.
  • Add tests that request privileged routes with address variants and assert that they are refused.

Glossary

  • Access control: the rules that decide who may see or do what in an application.
  • Administration page: the part of a site or app used by its operators to manage it, normally behind a login.
  • API host: a server that answers requests from programs rather than showing pages to people.
  • Attribute: a setting on an HTML element, such as the destination of a link.
  • Baseline: the normal, expected response you compare test results against.
  • Bypass: getting past a protection that is meant to stop you.
  • Cached response: a saved copy of an earlier answer, served again without asking the server afresh.
  • Client-side: happening in the browser rather than on the server.
  • Deny by default: refusing anything that has no explicit permission.
  • False positive: a result that looks like a bug but is not one.
  • Handler: the server code that produces the answer for a particular address.
  • href: the HTML attribute that holds a link's destination address.
  • JavaScript: the programming language browsers run to make pages interactive.
  • Middleware: code that sits in front of handlers and processes every request, often used for checks.
  • Path: the part of a web address after the host name, such as /mobileapps.
  • Request: a message a browser sends to a server asking for a page or data.
  • Response: the message a server sends back.
  • Route: the mapping between an address and the handler that answers it.
  • Routing: the process of matching an incoming address to the right handler.
  • Session: the server's record that a particular browser is logged in.
  • Status code: a number in a response saying how the request went, such as 200 for success or 403 for forbidden.
  • Typo: a small spelling mistake in an address or name.

More by yappare

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.