Skip to content
This repository has been archived by the owner on Mar 19, 2018. It is now read-only.

xss with angle bracket entities #3

Open
dmac100 opened this issue Aug 24, 2017 · 0 comments
Open

xss with angle bracket entities #3

dmac100 opened this issue Aug 24, 2017 · 0 comments

Comments

@dmac100
Copy link

dmac100 commented Aug 24, 2017

Angle bracket entities in a href attribute cause the closing quote for the attribute to be converted to an entity, leaving the tag open. Other tags containing scripts can then be added after it.

Input:
<a href='&#60;/a&#x3e;'>Link</a><a href='&#60;/a&#x3e;&#39;&#60;script&#x3e;alert(1)&#x3c;/script&#x3e;'>Link</a>

Output:
<a href="</a>&quot;>Link</a><a href="</a>'<script>alert(1)</script>&quot;>Link</a>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant