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. |

| Subject: | Re: [Full-disclosure] PHP: Calendar Buffer Overflow |
|---|---|
| Date: | Tue, 28 Jun 2005 10:02:28 +0200 |
Hi! FistFucker [2005-06-27 7:02 +0200]:
There are some nice sprintf()'s in "\ext\calendar\calendar.c": 'sprintf(date, "%i/%i/%i", month, day, year);' Example exploitation (4.3.11): <?php JDToGregorian(999999999); ?>
Interesting that this works on Windows. I took a look at the code:
PHP_FUNCTION(jdtogregorian)
{
pval **julday;
int year, month, day;
char date[10];
[...]
sprintf(date, "%i/%i/%i", month, day, year);
RETURN_STRING(date, 1);
}
The biggest string length I could get is 15 characters. That would
merely overflow into the "year, month, day" integers, but not even
close to the function's return address.
Of course that is a bug that should be fixed in CVS head, but I think
it's not exploitable, so it does not require a security update as far
as I can see.
Thanks for the report,
Martin
--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org
signature.asc
Description: Digital signature
_______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Full-disclosure] multihtml exploit vulnerability advisory, Pot Kettle Industries |
|---|---|
| Next by Date: | [Full-disclosure] Multiple buffer overflows exist in Infradig Systems Inframail Advantage Server Edition 6.0, Reed Arvin |
| Previous by Thread: | Re: [Full-disclosure] PHP: Calendar Buffer Overflow, FistFucker |
| Next by Thread: | Re: [Full-disclosure] PHP: Calendar Buffer Overflow, Stefan Esser |
| Indexes: | [Date] [Thread] [Top] [All Lists] |