[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [WEB SECURITY] Cross Site Scripting



------=_NextPart_000_0022_01C7FBB6.60351660
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

To reduce the risk and to prevent such an attack on your website, all =
form information that is entered, should be checked for html code like =
this <script>script code goes here</script>. Basically, your website =
should not accept any script code from anyone on the web and especially =
storing the code in the db and then outputting it to somebody else.

=20

When you add validation for your input fields, you can run free web =
vulnarability scanners like www.acunetix.com <http://www.acunetix.com/>  =
to see if you still have the vulns.

=20

Hope this helps.

=20

Sergii Khomenko

=20

  _____ =20

From: Mad Unix [mailto:madunix@gmail.com]=20
Sent: Thursday, September 20, 2007 10:53 AM
To: websecurity@webappsec.org
Subject: [WEB SECURITY] Cross Site Scripting

=20

Our security consulting compay he discoverd on our web server the =
following risk:

=20

Cross Site Scripting=20
Risk: High

Description of Vulnerability

The Cross-Site Scripting attack is a privacy violation that allows an =
attacker to acquire a legitimate user's=20
credentials and to impersonate that user when interacting with a =
specific website.=20
The attack hinges on the fact that the web site contains a script that =
returns a user's input=20
(usually a parameter value) in an HTML page, without first sanitizing =
the input.=20
This allows an input consisting of JavaScript code to be executed by the =
browser when the script returns this input=20
in the response page. As a result, it is possible to form links to the =
site where one of the parameters consists of malicious=20
 JavaScript code. This code will be executed (by a user's browser) in =
the site context, granting=20
it access to cookies that the user has for the site, and other windows =
in the site through the user's browser.=20

=20

=20

--------------

Can any one tell me more about this effect and how to observe and =
resolve this issue, since is be given as high risk.

Thanks



--=20
madunix

madunix@gmail.com=20


------=_NextPart_000_0022_01C7FBB6.60351660
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DRU link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>To reduce the =
risk and to
prevent such an attack on your website, all form information that is =
entered,
should be checked for html code like this &lt;script&gt;script code goes =
here&lt;/script&gt;.
Basically, your website should not accept any script code from anyone on =
the
web and especially storing the code in the db and then outputting it to
somebody else.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>When you add =
validation for
your input fields, you can run free web vulnarability scanners like <a
href=3D"http://www.acunetix.com/";>www.acunetix.com</a> to see if you =
still have
the vulns.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Hope this =
helps.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Sergii =
Khomenko<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm =
0cm 4.0pt'>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span lang=3DEN-US style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
Mad Unix [mailto:madunix@gmail.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, September =
20, 2007
10:53 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
websecurity@webappsec.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [WEB SECURITY] =
Cross Site
Scripting</span></font><span lang=3DEN-US><o:p></o:p></span></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Our&nbsp;security consulting compay he discoverd on our web =
server the
following risk:<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Cross Site Scripting <br>
Risk: High<o:p></o:p></span></font></p>

</div>

<p><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>Description
of Vulnerability<o:p></o:p></span></font></p>

<p><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>The
Cross-Site Scripting attack is a privacy violation that allows an =
attacker to
acquire a legitimate user's <br>
credentials and to impersonate that user when interacting with a =
specific
website. <br>
The attack hinges on the fact that the web site contains a script that =
returns
a user's input <br>
(usually a parameter value) in an HTML page, without first sanitizing =
the input.
<br>
This allows an input consisting of JavaScript code to be executed by the
browser when the script returns this input <br>
in the response page. As a result, it is possible to form links to the =
site
where one of the parameters consists of malicious <br>
&nbsp;JavaScript code. This code will be executed (by a user's browser) =
in the
site context, granting <br>
it access to cookies that the user has for the site, and other windows =
in the
site through the user's browser. <o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>--------------<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Can any one tell me more about this effect and how to observe =
and
resolve this issue, since is be given as high =
risk.<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Thanks<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br clear=3Dall>
<br>
-- <br>
madunix<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><a =
href=3D"mailto:madunix@gmail.com";>madunix@gmail.com</a>&nbsp;<o:p></o:p><=
/span></font></p>

</div>

</div>

</div>

</body>

</html>

------=_NextPart_000_0022_01C7FBB6.60351660--



Brought to you by http://www.webappsec.org
Search this site