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: Injected, whats next |
|---|---|
| Date: | Fri, 18 Aug 2006 11:04:06 -0400 |
You should be able to use SELECT ... INTO OUTFILE to write the results of a SELECT statement out to a file on the server's filesystem. Since you can SELECT things that don't actually reference any table, this should let you write arbitrary data to the filesystem with the permissions of the database user.
Since it uses PHP, I would try to find a writable, web-accessible directory on the server and do something like
SELECT '<?php some_evil_php_code ?>' INTO OUTFILE '/var/www/accessible_by_db/';
Have fun :)
-Brendan
I am testing a web application, I can run UPDATE & SELECT Does anyone know a way to upload a file to a server through MySQL ! does it allow running system commands or a way to dump a file from the database to the server? its LAMP , Linux, Apache, MySQL, PHP any ideas!!
Dok smoke dope, eat soap, fly home in a bubble
------------------------------------------------------------------------ This List Sponsored by: Cenzic
Need to secure your web apps? Cenzic Hailstorm finds vulnerabilities fast. Click the link to buy it, try it or download Hailstorm for FREE. http://www.cenzic.com/products_services/download_hailstorm.php ------------------------------------------------------------------------
------------------------------------------------------------------------ This List Sponsored by: Cenzic
Need to secure your web apps? Cenzic Hailstorm finds vulnerabilities fast. Click the link to buy it, try it or download Hailstorm for FREE. http://www.cenzic.com/products_services/download_hailstorm.php ------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Injected, whats next, Clemens, Dan |
|---|---|
| Next by Date: | Re: Citrix exploits?, r@d |
| Previous by Thread: | Re: Injected, whats next, Serg B. |
| Next by Thread: | Re: Injected, whats next, DokFLeed |
| Indexes: | [Date] [Thread] [Top] [All Lists] |