Skip to content

Potential for arbitrary code execution #75

@ghaspias

Description

@ghaspias

The code in this line is a potential vulnerability, if we load some data file with malicious content...
https://github.com/fangq/jsonlab/blob/0a393469768575fe07d89f74ee75ced9d8d20c34/loadjson.m#L261

loadjson('{"root": [dir]}') executes Matlab code dir...
loadjson('{"root": [system(...)]}') executes system commands!!!

Loading the file below will launch notepad.exe... (remove .log extension)
vuln_test.json.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions