Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CSPs on data.gov, catalog.data.gov, resources.data.gov #4952

Open
4 tasks
tdlowden opened this issue Oct 29, 2024 · 0 comments
Open
4 tasks

Implement CSPs on data.gov, catalog.data.gov, resources.data.gov #4952

tdlowden opened this issue Oct 29, 2024 · 0 comments
Labels
compliance Relating to security compliance or documentation

Comments

@tdlowden
Copy link
Member

User Story

In order to take all measures to prevent XSS attacks, datagovteam wants to implement a Content Security Policy.

Acceptance Criteria

  • GIVEN XSS attacks are possible
    AND having CSPs is an accepted web best practice
    WHEN a page loads
    THEN a CSP is present in the header

Background

18F recommends CSPs https://guides.18f.gov/engineering/security/content-security-policy/

AND we get a ding on ScanGov score for not having one on data.gov specifically: https://scangov.org/profile/?domain=data.gov#security

Despite data.gov and resources.data.gov being static sites, it would help us maintain better "scores" to have a CSP in place.

Security Considerations (required)

Will improve security posture from data injection and XSS attacks

Sketch

  • Add CSP on data.gov via meta-tag
  • Add CSP on catalog.data.gov via meta-tag
  • Add CSP on resources.data.gov via meta-tag
@tdlowden tdlowden added the compliance Relating to security compliance or documentation label Oct 29, 2024
@Bagesary Bagesary moved this to 📥 Queue in data.gov team board Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compliance Relating to security compliance or documentation
Projects
Status: 📥 Queue
Development

No branches or pull requests

1 participant