target://xss-profile-card
easyOPEN
Echoing Bio Card
xsshtml-encodingurl-validation
// Scenario
A community directory renders user profile cards as HTML snippets via render_profile_card(name, bio, website_url) / renderProfileCard(name, bio, websiteUrl).
// The Vulnerability
All three user inputs are injected directly into raw HTML:
nameandbioare not HTML-escaped, allowing<script>or<img onerror=...>payloads.website_urlis placed straight into<a href="...">, allowingjavascript:ordata:URIs or attribute breakout via".
// Your Task
- Escape HTML special characters (
&,<,>,",') in all interpolated text and attribute values. - Validate
website_url: only allowhttp://orhttps://URLs (case-insensitive after trimming). Any unsafe or malformed URL should fall back to#.
Sample Sanity Checks (1)
- Normal profile renders cleanlyValid name, bio, and https URL appear in card HTML
Hints (0/3)
initializing editor...
[idle] Press RUN to execute visible sample checks, or SUBMIT to run hidden exploit & functionality suites.