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

20 lines
823 B
Markdown

### [CVE-2021-23639](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23639)
![](https://img.shields.io/static/v1?label=Product&message=md-to-pdf&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%205.0.0%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Remote%20Code%20Execution%20(RCE)&color=brighgreen)
### Description
The package md-to-pdf before 5.0.0 are vulnerable to Remote Code Execution (RCE) due to utilizing the library gray-matter to parse front matter content, without disabling the JS engine.
### POC
#### Reference
- https://github.com/simonhaenisch/md-to-pdf/issues/99
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/itsmiki/hackthebox-web-challenge-payloads