Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer dereference #32

Open
rain6851 opened this issue Apr 17, 2020 · 0 comments
Open

Null pointer dereference #32

rain6851 opened this issue Apr 17, 2020 · 0 comments

Comments

@rain6851
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant