beardofedu / beardofedu/copilot-agentic-updates-deck

[Demo][Security] Replace weak reset token generator

Open
#9 0 comments 1 reaction 2 assignees Claimed by @beardofedu View on GitHub
enhancement
Dominant language
HTML
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Demo goal
Show a second security remediation path from finding to fix PR.

## Problem
`/api/password-reset-token` uses `Math.random()` token generation.

## Requested change
- Use cryptographically secure token generation
- Increase entropy and return expiry metadata
- Add clear error handling for missing email

## Presenter cue
Use this as the follow-up issue after XSS to show prioritization and MTTR reduction.

## Files
- `demo-app/server.js`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.