Lucene search

K
nodejsAjin AbrahamNODEJS:311
HistoryFeb 09, 2017 - 4:30 p.m.

Code Execution through IIFE

2017-02-0916:30:45
Ajin Abraham
www.npmjs.com
45

EPSS

0.04

Percentile

92.3%

Overview

Affected versions of node-serialize can be abused to execute arbitrary code via an immediately invoked function expression (IIFE) if untrusted user input is passed into unserialize().

Recommendation

There is no direct patch for this issue. The package author has reviewed this advisory, and provided the following recommendation:

To avoid the security issues, at least one of the following methods should be taken:

1. Make sure to send serialized strings internally, isolating them from potential hackers. For example, only sending the strings from backend to fronend and always using HTTPS instead of HTTP.

2. Introduce public-key cryptosystems (e.g. RSA) to ensure the strings not being tampered with.

References