Skip to content

Null pointer dereference #32

@bird8693

Description

@bird8693

Enviroment

operating system: ubuntu18.04
compile command: make
test command: ./run_tests  poc

poc:

https://drive.google.com/open?id=1dZ0KZHO0GgsxC-dj9HBP2bIYKFvG_EEM

vulnerability description:

There is a problem with CTinyJS :: statement. In the TinyJS.cpp + 2042 line, the pointer reference is wrong, as shown in the figure:
image
When the object link was obtained from the base function, the null pointer was not checked, which caused the null pointer reference and triggered a crash.

PoC construction

Add a null character after the expression in the js script:
image
In the picture, "j = 0;" is the empty character.

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