Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 56c5837d9d111437878acba01e4df73e > files > 831

snort-2.3.3-2.3.20060mdk.x86_64.rpm

Rule:
--
Sid:
1667
--
Summary:
This event indicates that a cross-site scripting attack using the "img 
src=javascript" vulnerability is being attempted, or a potential 
attacker is testing your site to determine if it is vulnerable.

--
Impact:
Successful cross-site scripting attacks generally target the users of 
your web site.   Attackers can potentially gain access to your users 
cookies or session ids, allowing the attacker to impersonate your 
user.   They could also set up elaborate fake logon screens to steal 
user names and passwords.

--
Detailed Information:
Whenever a web application accepts input and then uses that input as 
part of the HTML of a new page without filtering, the application is 
vulnerable to cross-site scripting.  The traditional means of exploiting
this is to embed a "<SCRIPT>" tag into the input.   However, as many 
applications now look for this attack vector, exploitation of the 
ability to use "IMG SRC=javascript:" to embed javascript without the 
script tag is becoming more common.

--
Attack Scenarios:
The most common avenue of attack is for the attacker to send an HTML 
formatted email to the victim.  The email will contain a link to a 
specially crafted URL which contains the exploit.   When the victim 
clicks on the link, they are directed to the vulnerable web site and the
attack code is executed by their browser.

--
Ease of Attack:
Moderately Easy.  Exploit code exists to automate attacks against users 
of some widely deployed web applications which are known to be 
vulnerable.  Finding vulnerabilities in other, including proprietary, 
web applications is fairly trivial and existing exploit code could 
easily be modified to take advantage of newly discovered 
vulnerabilities.

--
False Positives:
Web pages that legimately include the "IMG SRC=javascript:" directive 
could trigger this alert under certain circumstances.

--
False Negatives:
None known.

--
Corrective Action:
Determine if your web application is actually vulnerable to this 
attack. If it is and the application is not of your own design, 
contact the authors or vendor and see if there is a patch or newer 
version.   If the application is proprietary to you or your company, 
ensure that it properly validates input.

--
Contributors:
Sourcefire Research Team
Brian Caswell <bmc@sourcefire.com>
Snort documentation contributed by Kevin Peuhkurinen

-- 
Additional References:

iDefense
http://www.idefense.com/idpapers/XSS.pdf

--