Reputation: 119
How I can bypass XSS filter if it escape this symbols: &
, <
, >
, \
, '
?
Upvotes: 0
Views: 2485
Reputation: 846
It depends on where the injection goes. Here is an example of XSS without the forbidden characters:
Let's say a page receives a picture file name and displays it, and does not encode the quote character:
https://contoso.com/displaypic?source=111.jpg
<img src="111.jpg"></img>
If you access this URL, you have yourself XSS:
https://contoso.com/displaypic?source=a"+onerror="alert(111)
<img src="a" onerror="alert(111)"></img>
Upvotes: 1