Official nomination
The Secret Parameter, LFR, and Potential RCE in NodeJS Apps
Express passes the whole render options object to the hbs view engine, which reads its layout property as a template path. A request body carrying a layout key therefore makes the server read and render an arbitrary file, giving local file read and, on old Handlebars versions, remote code execution. Prototype pollution can inject layout even when the app wraps its object.
Preserved copies · CaptainFreak · Original publication ↗
Record
- Researcher
- CaptainFreak
- Published by
- CaptainFreak
- Topic
- Server
In the archive
- Nominated for the 2021 Top 10 Web Hacking Techniques · Open this archive record
Announcement provenance and preserved copies
PortSwigger Research · Source identity checked 2026-11-18; live availability may change. Historical material does not establish that nominations or voting are open.
Official results · Preserved results (PDF)
Official nomination material
Related sources
- Author challenge source
Author not stated
External source · no preserved copy
Tags
This page is the archive's own catalogue record. The research is the work of CaptainFreak, first published at the original source. Preserved copies are kept so the citation survives its host.