lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Sat, 05 Aug 2006 17:45:46 +0200
From: czubakabra <czubakabra@...pl>
To: full-disclosure@...ts.grok.org.uk
Subject: Old, php fileupload overflow vuln - need help.

Hi,
Some time ago, Stefan Esser find potencialy exploitable vulnerability
in PHP upload code (exactly php_mime_split() function). I need to create
exploit code for 4.0.4pl version of PHP, but I think this vulnerability
cannot cause remote code execution.
advisory: http://security.e-matters.de/advisories/012002.html

Vulnerable code:		

		loc2 = memchr(loc + 1, '\n', rem);
		rem -= (loc2 - ptr) + 1;
		ptr = loc2 + 1;

And now:

1. ptr could be 0x1 if loc2==0, crash on next memchr() on state=2 or state=3
2. ptr could be > (cnt + buf) when memchr() find '\n' somewhere in memory,
overwrite one byte: * (loc2 - 1) = '\0';

If anyone exploit this vulnerability? I would be very thankfull if someone can
help me.

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Powered by blists - more mailing lists