Target Briefing: OmniAuth Diagnostic Portal
The OmniCorp authentication service provides a single-sign-on error diagnostic portal at /auth/error?msg=....
To prevent XSS, their development team wrote a custom sanitization filter:
cleanedMsg = rawMsg.replace(/<script[^>]*>.*?<\/script>/gi, '');
This blacklist filter fails to account for self-closing vector tags, uppercase/nested bypasses, and inline event handlers.
Your Objective:
- Construct a reflected payload that bypasses the tag stripper and triggers
alert() with the administrative cookie.
- Capture the flag upon confirmed execution.
- Look into SVG or IFRAME tags with inline event handlers:
<svg onload=alert(1)>.
- Notice the regex only targets the word 'script'. What happens if you use
<body onload=alert(1)> or autofocus tags?