Closed hdthky closed 2 years ago
Denial of service perhaps, information disclosure unlikely.
Maybe I misrepresent it, I just wanted to say it's possible.
Needed to update prev pointer in linked list:
[master 614fcba] Fix potential use-after-free in blocks/paragraphs (Issue #484)
Description
Whilst experimenting with
htmldoc
, built from commit 0bef12c, we are able to induce a vulnerability athtmldoc/htmldoc/ps-pdf.cxx:5203
in functionparse_paragraph
, using a harness compiled fromhtmldoc/htmldoc.cxx
.Because there is no bounds checking, a heap-based out-of-bound read will be triggered when the software encounters a malformed file, result in information disclosure or denial of service.
Environment
Ubuntu 20.04
gcc 10.3.0 with ASAN
Proof of Concept
The POC is: poc_heap_overflow7
The command is:
./htmldoc --webpage -t pdf -f /dev/null poc_heap_overflow7
The ASAN report is:
Impact
This vulnerability is capable of inducing information disclosure or denial of service.