Skip to content

overview: don't escape option descriptions#632

Merged
erictapen merged 2 commits into
ngi-nix:mainfrom
erictapen:overview
Mar 21, 2025
Merged

overview: don't escape option descriptions#632
erictapen merged 2 commits into
ngi-nix:mainfrom
erictapen:overview

Conversation

@erictapen
Copy link
Copy Markdown
Contributor

@erictapen erictapen commented Mar 21, 2025

This puts us at risk of XSS by an attacker submitting malicious option descriptions to Nixpkgs/NGIpkgs. At the same time the xml escaping fucks up some description texts, as what we'd actually need is Markdown escaping.

I'd argue that the former is a managable risk, while the latter is unaccaptable.

Before:
tmp mUOCs2rnkB

After:
tmp bomlRULMzL

This puts us at risk of XSS by an attacker submitting malicious option
descriptions to Nixpkgs/NGIpkgs. At the same time the xml escaping fucks
up some description texts, as what we'd actually need is Markdown
escaping.
@erictapen erictapen enabled auto-merge (squash) March 21, 2025 17:26
@erictapen erictapen merged commit 7efacc2 into ngi-nix:main Mar 21, 2025
@github-project-automation github-project-automation Bot moved this to Done in Nix@NGI Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants