nuclei-templates/file/nodejs/express-lfr.yaml

21 lines
714 B
YAML
Raw Normal View History

2022-12-22 11:26:45 +00:00
id: express-lfr
info:
2023-07-02 17:40:27 +00:00
name: Express - Local File Read
2022-12-22 11:26:45 +00:00
author: me_dheeraj (https://twitter.com/Dheerajmadhukar)
severity: info
description: Untrusted user input in express render() function can result in arbitrary file read if hbs templating is used.
tags: file,nodejs,express,lfr
file:
- extensions:
- all
matchers:
- type: regex
regex:
2023-06-28 05:22:51 +00:00
- "(\\$[\\w\\W]+?)\\.render\\(\\$[\\w\\W]+?, <[\\w\\W]+? \\\\$[\\w\\W]+? [\\w\\W]+? >\\)"
- "(\\$[\\w\\W]+?)\\.render\\(\\$[\\w\\W]+?, <[\\w\\W]+? \\\\$[\\w\\W]+?\\.\\$[\\w\\W]+? [\\w\\W]+? >\\)"
- "(\\$[\\w\\W]+?)\\.render\\(\\$[\\w\\W]+?, <[\\w\\W]+? \\\\$[\\w\\W]+? [\\w\\W]+? >\\)"
2022-12-22 11:26:45 +00:00
condition: or