[Demo][Security] Fix reflected XSS in promo banner
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- javascript
Research direction
Start with demo-app/public/app.js and trace how the promo query parameter is rendered. Replace the unsafe HTML rendering with text-only behavior, enforce the requested promo length constraint, and document how benign and unsafe inputs should behave. Done means promo content cannot be interpreted as HTML and the expected behavior is documented.
Written by the indexing model from the issue text.
Description
Demo goal
Show a security finding and Copilot remediation workflow.
Problem
demo-app/public/app.js sets promo text using innerHTML from URL query param promo.
Requested change
- Replace unsafe rendering with safe text-only rendering
- Add input constraints for promo length
- Document expected behavior for benign/unsafe input
Presenter cue
Use this issue for Defender + GitHub Code Security remediation narrative.
Files
demo-app/public/app.js
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from beardofedu/copilot-agentic-updates-deck
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
All issues in beardofedu/copilot-agentic-updates-deck
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug ready-for-dev
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100