PAGI::FastAPI versions from 1.0.0 before 1.4.0 for Perl serve requests without registered...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANPAGI-FastAPI |
≥ 1.0.0, < 1.4.0→ 1.4.0 |
1.4.0 |
Original description The description as published by the source.
PAGI::FastAPI versions from 1.0.0 before 1.4.0 for Perl serve requests without registered authentication or CSRF middleware in applications built with to_app.
add_middleware keeps middleware objects in a separate stack. These include PAGI::Middleware classes such as Auth::Basic, and the CSRF middleware that enable_csrf installs. to_app, the entry point the documentation deploys with, never applies that stack, and nothing warns that the middleware does not run. Middleware registered as a code reference is unaffected.
A remote attacker can call protected routes without credentials and forge cross-site state-changing requests.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web metacpan.org
- web cpan.org
- web nvd.nist.gov
- web github.com
- web openwall.com