Files
CVEs-PoC/2021/CVE-2021-32822.md
T
2024-05-25 21:48:12 +02:00

18 lines
1.0 KiB
Markdown

### [CVE-2021-32822](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32822)
![](https://img.shields.io/static/v1?label=Product&message=hbs&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-538%20File%20and%20Directory%20Information%20Exposure&color=brighgreen)
### Description
The npm hbs package is an Express view engine wrapper for Handlebars. Depending on usage, users of hbs may be vulnerable to a file disclosure vulnerability. There is currently no patch for this vulnerability. hbs mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options a file disclosure vulnerability may be triggered in downstream applications. For an example PoC see the referenced GHSL-2021-020.
### POC
#### Reference
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/
#### Github
- https://github.com/tddouglas/tylerdouglas.co