LOW: No Content-Security-Policy (CSP) headers — no XSS protection #9
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:pre-dispatch
bug
feature-request
in-progress
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/tokengenerator#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: LOW
Location
tokengenerator.html, entire file (no CSP meta tag or headers)Description
The application runs entirely in the browser with no Content-Security-Policy (CSP) set. This means:
data:image/png;base64,...URIs. While currently safe, an attacker who compromises the API response could inject malicious content.Recommended Fix
Add a CSP meta tag in the
<head>section:Impact
Low-severity on its own, but removing defenses-in-depth makes the app more vulnerable if other security issues are present.