Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.
Start learningUpgrade @nestjs/platform-fastify to version 11.1.11 or higher.
@nestjs/platform-fastify is a Nest - modern, fast, powerful node.js web framework (@platform-fastify)
Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the URL encoding middleware, allowing it to be bypassed in certain configurations. An attacker can gain unauthorized access to protected routes or administrative endpoints.
To be vulnerable, an application must be applying security checks via NestMiddleware/MiddlewareConsumer or app.use(), and must apply middleware to specific routes using string paths or controllers. See the vulnerable example below.
// app.module.ts
export class AppModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(AuthMiddleware) // security check
.forRoutes('admin'); // string-based rule
}
}
Target Route: /admin
Middleware Path: admin
Attack Request: GET /%61dmin
Result: Middleware is skipped (no match on %61dmin), but controller for /admin is executed.