SB2022092022 - Multiple vulnerabilities in StealJS steal
Published: September 20, 2022
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 secuirty vulnerabilities.
1) Prototype pollution (CVE-ID: CVE-2022-37264)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to prototype pollution flaw in the optionName variable in main.js. A remote attacker can add or modify properties of Object.prototype using a __proto__ or constructor payload and execute arbitrary code on the target system.
2) Incorrect Regular Expression (CVE-ID: CVE-2022-37262)
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to insufficient input validation when processing regular expressions in the source and sourceWithComments variable in main.js. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.
3) Incorrect Regular Expression (CVE-ID: CVE-2022-37260)
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to insufficient input validation when processing regular expressions in main.js. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.
Remediation
Install update from vendor's website.
References
- https://github.com/stealjs/steal/blob/c9dd1eb19ed3f97aeb93cf9dcea5d68ad5d0ced9/main.js#L647
- https://github.com/stealjs/steal/blob/c9dd1eb19ed3f97aeb93cf9dcea5d68ad5d0ced9/main.js#L2194
- https://github.com/stealjs/steal/issues/1533
- https://github.com/stealjs/steal/blob/c9dd1eb19ed3f97aeb93cf9dcea5d68ad5d0ced9/main.js#L3497
- https://github.com/stealjs/steal/blob/c9dd1eb19ed3f97aeb93cf9dcea5d68ad5d0ced9/main.js#L3507
- https://github.com/stealjs/steal/issues/1531
- https://github.com/stealjs/steal/blob/c9dd1eb19ed3f97aeb93cf9dcea5d68ad5d0ced9/main.js#L3344
- https://github.com/stealjs/steal/issues/1529
- https://github.com/stealjs/steal/blob/c9dd1eb19ed3f97aeb93cf9dcea5d68ad5d0ced9/main.js#L2490