Regular expression DoS in url-regex



Published: 2020-08-20
Risk Medium
Patch available NO
Number of vulnerabilities 1
CVE ID CVE-2020-7661
CWE ID CWE-400
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
url-regex
Web applications / Modules and components for CMS

Vendor Kiwys

Security Advisory

This security advisory describes one medium risk vulnerability.

1) Resource exhaustion

Risk: Medium

CVSSv3.1: 6.9 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:U/RC:C] [PCI]

CVE-ID: CVE-2020-7661

CWE-ID: CWE-400 - Uncontrolled Resource Consumption ('Resource Exhaustion')

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to application does not properly control consumption of internal resources while processing regular expressions. A remote attacker can pass a very long string in String.test and perform a denial of service (DoS) attack.

Mitigation

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Vulnerable software versions

url-regex: 1.0.2, 1.0.3, 1.0.4, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.2.0, 4.0.0, 4.1.0, 4.1.1, 5.0.0

CPE External links

https://github.com/kevva/url-regex/issues/70
https://snyk.io/vuln/SNYK-JS-URLREGEX-569472
https://www.npmjs.com/advisories/1550

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.



###SIDEBAR###