Skip to content

Add: XSS Defender quest - #821

Merged
praveenscience merged 1 commit into
praveenscience:mainfrom
Akshatshukla-25:add/xss-defender
Jul 31, 2026
Merged

Add: XSS Defender quest#821
praveenscience merged 1 commit into
praveenscience:mainfrom
Akshatshukla-25:add/xss-defender

Conversation

@Akshatshukla-25

Copy link
Copy Markdown
Contributor

What does this PR do?

Closes #819

Adds XSS Defender (quests/xss-defender.html) under the JavaScript Fundamentals category. The quest is an interactive web security game where players act as security engineers securing a web application against Cross-Site Scripting (XSS) attacks by configuring CSP headers (script-src 'self'), applying HTML entity encoding, and implementing DOM sanitization policies.

Type of Change

  • New tool / quest
  • Enhancement to existing tool
  • Bug fix
  • Documentation update
  • Build system / infrastructure

Screenshot

XSS Defender Screenshot

Checklist

  • I have read the Contributing Guide
  • My branch follows the naming convention (add/tool-name, feat/description, or fix/description)
  • I have tested my changes locally in at least one modern browser

For new tools / quests:

  • The quest is a single self-contained .html file in the quests/ folder
  • The filename is kebab-case (xss-defender.html)
  • I added an entry to data/quests.json with all required fields
  • I added a screenshot as quests/xss-defender.png next to the HTML file
  • No JS frameworks or heavy UI libraries
  • I ran node scripts/sort-norm.js data/quests.json to sort and normalize the quests registry
  • I ran node scripts/build.js and verified the landing page renders correctly

@praveenscience praveenscience left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@praveenscience
praveenscience merged commit 7c18967 into praveenscience:main Jul 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Idea: XSS Defender — DOM Sanitizer & Content Security Policy playground

2 participants