.. / CVE-2021-32819

Exploit for Nodejs Squirrelly - Remote Code Execution (CVE-2021-32819)

Description:

Nodejs Squirrelly is susceptible to remote code execution. Squirrelly is a template engine implemented in JavaScript that works out of the box with ExpressJS. Squirrelly mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options remote code execution may be triggered in downstream applications. There is currently no fix for these issues as of the publication of this CVE. The latest version of squirrelly is currently 8.0.8. For complete details refer to the referenced GHSL-2021-023.

Nuclei Template

View the template here CVE-2021-32819.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-32819.yaml
Copy

References:

https://github.com/squirrellyjs/squirrelly/commit/c12418a026f73df645ba927fd29358efe02fed1e
https://nvd.nist.gov/vuln/detail/CVE-2021-32819
https://www.linuxlz.com/aqld/2331.html
https://blog.diefunction.io/vulnerabilities/ghsl-2021-023
https://securitylab.github.com/advisories/GHSL-2021-023-squirrelly/