deptofdefense / dds.mil

The website of the Defense Digital Service.
https://dds.mil
MIT License
19 stars 15 forks source link

Patched 🐛Insecure serialization leading to RCE #454

Open imhunterand opened 1 year ago

imhunterand commented 1 year ago

serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function "deleteFunctions" within "index.js".

An object such as {"foo": /1"/, "bar": "a\"@__R-<UID>-0__@"} was serialized as {"foo": /1"/, "bar": "a\/1"/}, which allows an attacker to escape the bar key. This requires the attacker to control the values of both foo and bar and guess the value of <UID>. The UID has a keyspace of approximately 4 billion making it a realistic network attack.

CVE-2020-7660 8.1/ 10 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H