by Null-Set · 8y ago · 0 comments
const v8 = require('v8');
const buf = v8.serialize({a: 'foo', b: new Date()});
const cloned = v8.deserialize(buf);
cloned.b.getMonth();This is a classic example: https://www.cvedetails.com/cve/CVE-2015-7501/
(Many more can be found under the CWE-502 "Deserialization of Untrusted Data" category)