Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
64 views

Is it possible to bypass a html <> regex? [closed]

I need to bypass a regex filter that filters all between <> I tried almost everything, so this is my last chance. The regex look like this: result.replace(/<[^>]*>?/gm, ''); I need to ...
Johny77's user avatar
  • 11
2 votes
2 answers
6k views

How do I bypass a regex filter that filters all html to avoid xss?

How do I bypass a regex filter that filters all html to avoid xss? I've tried using things like &lt;img src="aa" onerror="alert(1)"&gt; but still no luck. This is for a CTF ...
ctfhard's user avatar
  • 21
1 vote
1 answer
1k views

Possible to bypass this regex for XSS?

When testing for XSS, is it at all possible to bypass the below regex? I doubt it because it only accepts uppercase and lowercase letters, but maybe? /^[A-Za-z]+$/
Jordan Baron's user avatar
0 votes
1 answer
124 views

How to filter HTML Event in Native PHP7

i want to creating xss filter for my own project, this is for html event filtering preg_replace("/ on\w+='[^']*'/i", '', preg_replace('/ on\w+="[^"]*"/i', '', $framed)); but considering to more ...
Reyhan Fabiano's user avatar