[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WEB SECURITY] img src , cant get it!
- From: "Esteban RibiÄiÄ" <kisero@xxxxxxxxx>
- Subject: [WEB SECURITY] img src , cant get it!
- Date: Mon, 1 Jan 2007 15:45:53 +0000
------=_Part_123203_6994239.1167666353964
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hi,
I'm testing some web app we have in our office which are about to be public.
Users can upload images, i tried uploading an image with this content:
"<IMG
SRC=javascript:alert('XSS')>"
expecting an XSS alert to be displayed...
if i request the image directly i get the alert("xss") ... but if the image
is requested from the the "profile" page , which has the href link to the
image, (where a href to the img exist) i get a 304 error...
can anyone explain or give me a reference where i can understand what is
wrong?
i know its a very simple case, well, i guess I'm just on the initial
learning path :-P
i wanted to test the input fields for tags like href, img, ', ", etc to see
if the code is vulnerable to more xss input (permanent or not) ... can
anyone recommend me an application? i was about to code something...but my
laziness is killing me :)
many thanks
have a great 2007
------=_Part_123203_6994239.1167666353964
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div>hi,</div>
<div> </div>
<div>I'm testing some web app we have in our office which are about to be public. Users can upload images, i tried uploading an image with this content:</div>
<div> </div>
<div>"<IMG SRC=&#106;&#97;&#118;&#97;&#115;&#99;&#114;&#105;&#112;&#116;&#58;&#97;&#108;&#101;&#114;&#116;&#40;&#39;&#88;&#83;&#83;&#39;&#41;>"
</div>
<div> </div>
<div>expecting an XSS alert to be displayed...</div>
<div> </div>
<div>if i request the image directly i get the alert("xss") ... but if the image is requested from the the "profile" page , which has the href link to the image, (where a href to the img exist) i get a 304 error...
</div>
<div> </div>
<div>can anyone explain or give me a reference where i can understand what is wrong? </div>
<div> </div>
<div>i know its a very simple case, well, i guess I'm just on the initial learning path :-P</div>
<div> </div>
<div>i wanted to test the input fields for tags like href, img, ', ", etc to see if the code is vulnerable to more xss input (permanent or not) ... can anyone recommend me an application? i was about to code something...but my laziness is killing me :)
</div>
<div> </div>
<div>many thanks</div>
<div>have a great 2007</div>
<div> </div>
<div> </div>
------=_Part_123203_6994239.1167666353964--
Brought to you by http://www.webappsec.org
Search this site
|