You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First observe the stack traceback, as shown in the figure:
It is a problem with CTinyJS :: term. On the TinyJS.cpp: 1736 line, a null pointer reference is triggered, as shown in the figure:
The reason for the vulnerability is that when the temporary assignment variable b is generated, it is not verified whether b is empty, and then b-> var refers to b, which causes the vulnerability.
There is a '\ x00' character after the "" here, causing tiny-js to think that the "" is empty after the parsing process, so the base parsing function returns 0, and "b-> var" is not checked before the reference , Which in turn produced the vulnerability.
PoC construction
In the process of declaring a variable, a null pointer can be caused by adding a null character after "*".
That is, a null character is added after the multiplication symbol.
The text was updated successfully, but these errors were encountered:
Enviroment
poc:
vulnerability description:
First observe the stack traceback, as shown in the figure:
![image](https://user-images.githubusercontent.com/13704697/79534562-7c388d80-80ad-11ea-87fb-47be5f0bd887.png)
![image](https://user-images.githubusercontent.com/13704697/79534575-89557c80-80ad-11ea-9f08-87019949ee4b.png)
It is a problem with CTinyJS :: term. On the TinyJS.cpp: 1736 line, a null pointer reference is triggered, as shown in the figure:
The reason for the vulnerability is that when the temporary assignment variable b is generated, it is not verified whether b is empty, and then b-> var refers to b, which causes the vulnerability.
There is a '\ x00' character after the "" here, causing tiny-js to think that the "" is empty after the parsing process, so the base parsing function returns 0, and "b-> var" is not checked before the reference , Which in turn produced the vulnerability.
PoC construction
In the process of declaring a variable, a null pointer can be caused by adding a null character after "*".
![image](https://user-images.githubusercontent.com/13704697/79534636-b144e000-80ad-11ea-8f5e-671c495cd1d5.png)
That is, a null character is added after the multiplication symbol.
The text was updated successfully, but these errors were encountered: