Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Vuln-Dev
[Top] [All Lists]

pdflib long filename multiple bufferoverflows

Subject: pdflib long filename multiple bufferoverflows
Date: Sun, 23 Dec 2007 00:01:03 +0100
hi,
pdflib, a library for generating PDF on the fly, avilable at http:// www.pdflib.com, is vulnerable to multiple bufferoverflows due to a misuse of strcpy().
An attacker can exploit this issue to execute arbitrary code or to crash the application that uses the library.
One of the vulnerable functions is pdc_fsearch_fopen() that is called, for example, by PDF_load_image() which overflows a stack buffer if a long filename is provided.
The php wrapper for pdflib (pecl extension) is also vulnerable so please take care of allowing users to generate custom pdfs from webapps.


this is a proof-of-concept that crashes php:
<?php
.....
PDF_load_image($p,"jpeg",str_repeat("A",1100), null);

?>


The developers have been warned and they plained to fix those bugs in the next release.



cheers, -poplix http://px.dynalias.org


<Prev in Thread] Current Thread [Next in Thread>
  • pdflib long filename multiple bufferoverflows, poplix <=