Junglewise Threat Intelligence

CVE-2021-32831: total.js code injection in utils.set

CVE-2021-32831 · Severity: low · CVSS 3.1 · Published 2021-09-01

Technologies: Total.js Framework, total.js (npm). Vendors: Total.js, npm.

Executive brief

total.js is a popular Node.js web framework similar to Laravel or Django. A code injection vulnerability in the utils.set function allows attackers to execute arbitrary code if they can control input passed to this function. This could lead to complete system compromise and data theft.

Technical details

The vulnerability is a code injection flaw (CWE-94) in the utils.set function of total.js framework versions before 3.4.9. When the function processes user-controlled values without proper sanitization, attackers can inject and execute arbitrary JavaScript code. The attack requires the ability to influence values passed to utils.set, typically through application features that accept user input. Successful exploitation results in arbitrary code execution with the privileges of the Node.js process. The fix was released in version 3.4.9.

Affected products

  • total.js total.js before 3.4.9

Timeline

  • 2021-08-30: disclosed: NVD published
  • 2021-08-31: patched: Fixed in version 3.4.9

References

Related threats