It is CTinyJS :: logic that has a problem. On the TinyJS.cpp + 1846 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.
Enviroment
poc:
vulnerability description:
It is CTinyJS :: logic that has a problem. On the TinyJS.cpp + 1846 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.
PoC construction
During the variable declaration, write 0.