beardofedu / beardofedu/copilot-agentic-updates-deck

[Demo][Security] Fix reflected XSS in promo banner

Open Beginner friendly
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

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`

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

Tech stack
javascript
Domain
frontend, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.