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] Cross Domain XMLHttpRequest |
|---|---|
| Date: | Sun, 15 Apr 2007 23:21:36 +0200 |
Michal Majchrowicz wrote:
Due to "security reasons" many Web Browsers doesn't allow cross domain XMLHttpRequests.
[..] hi Michal, personally i don't get your point (to me it seems just an hybrid implementation using both server side and client side scripting) but i'm sure you can better explain your intents from what i saw it asks a php page to make an http query to the foreign domain and then display back the page contents using js so i suppose this is not a vulnerability at all, just an implementation to (??) pass to javascript remote contents fetched using a machine != from the client/browser/whenether anyway your implementation is a bit flawed http://sectroyer.110mb.com/myhttp.php?url=file://myhttp.php&method=get --8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- <?php if(isset($_GET['url'])==true) { $curl=curl_init(); curl_setopt($curl,CURLOPT_COOKIE,$_GET['cookie']); curl_setopt($curl,CURLOPT_URL,rawurldecode($_GET['url'])); curl_setopt($curl,CURLOPT_RETURNTRANSFER,1); if(($_GET['method']=="post") && (isset($_GET['vars'])==true)) { $vars=rawurldecode($_GET['vars']); curl_setopt($curl,CURLOPT_POSTFIELDS,$vars); } $tmp=curl_exec($curl); curl_close($curl); echo "myglobalcallback(\"".rawurlencode($tmp)."\");"; } ?> --8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- this is basically a proxy, it can make get/post requests to http only hosts, saturate the server bandwidth *PLUS* naturally fetch any local file : ) http://sectroyer.110mb.com/myhttp.php?url=file:///etc/passwd&method=get please correct me if i misunderstood best regards, Francesco `ascii` Ongaro http://www.ush.it/ _______________________________________________ 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] Cross Domain XMLHttpRequest, Michal Majchrowicz |
|---|---|
| Next by Date: | [Full-disclosure] iDefense Security Advisory 04.16.07: ClamAV CAB File Unstore Buffer Overflow Vulnerability, iDefense Labs |
| Previous by Thread: | [Full-disclosure] Cross Domain XMLHttpRequest, Michal Majchrowicz |
| Next by Thread: | [Full-disclosure] iDefense Security Advisory 04.16.07: ClamAV CAB File Unstore Buffer Overflow Vulnerability, iDefense Labs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |