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
The text was updated successfully, but these errors were encountered:
jinyu00
changed the title
Integer overflow in SWF::Reader::getWord and the repair plan in the last of the reporter
Integer overflow in SWF::Reader::getWord and the repair plan in the last of the report
Jul 21, 2018
When open a crafted
swf
file , it could tiggerInteger overflow
Let's see gdb output
As you can see , The program crash in
SWF::Reader::getWord
( SWFReader.cpp )From the gdb debug infomation , the
pos
is negative numberso when access data[pos] ( data + pos ), it could access invalid memory.
The vulnerability locate in
SWFReader.cpp
andSWFReader.h
.The
pos
andlength
is signed int value.And when read data from file , it could call
Reader::getXXX
.For example ,
Reader::getData
's code are as below:When read data from file , the
pos
would add , although pos+len > length.It can lead
pos
to be negative numberThe fix method is to change the type of
pos
andlength
tounsigned int
inSWFReader.h
The poc file
The text was updated successfully, but these errors were encountered: