Skip to content

Null pointer dereference #37

@bird8693

Description

@bird8693

Enviroment

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

poc:

https://drive.google.com/open?id=1SQYrTreCmgZdXTbM6dAvZfMQSG3WYnRV

vulnerability description:

It is a problem with CTinyJS :: expression. On the TinyJS.cpp + 1776 line, a null pointer reference is triggered, as shown in the figure:
image

The reason for the vulnerability is that when a temporary assignment variable a is generated, it is not verified whether a is empty, and then a-> var refers to a, which causes the vulnerability.

PoC construction

During the variable declaration, write 0.
image

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