Code injection in node-XMLHttpRequest



Published: 2021-03-05 | Updated: 2023-09-18
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2020-28502
CWE-ID CWE-94
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
node-XMLHttpRequest
Web applications / JS libraries

Vendor Michael de Wit

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU76189

Risk: Medium

CVSSv3.1: 5.9 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C]

CVE-ID: CVE-2020-28502

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation when processing synchronous requests in xhr.send. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.


Mitigation

Install updates from vendor's website.

Vulnerable software versions

node-XMLHttpRequest: 1.3.0 - 1.6.3

CPE2.3 External links

http://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480
http://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937
http://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938
http://snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935
http://snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###