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

Use CSP to disallow most JS #166

Open
rebeccacremona opened this issue Mar 14, 2023 · 0 comments
Open

Use CSP to disallow most JS #166

rebeccacremona opened this issue Mar 14, 2023 · 0 comments

Comments

@rebeccacremona
Copy link
Collaborator

PCI Data Security Standards v4, which we are not yet required to comply with, includes:

6.4.3 All payment page scripts that are loaded and executed in the consumer’s browser are managed as follows:
• A method is implemented to confirm that each script is authorized.
• A method is implemented to assure the integrity of each script.
• An inventory of all scripts is maintained with written justification as to why each is necessary

Perma Payments uses a single line of javascript in an inline script tag to forward users to CyberSource.

Let's set Content-Security-Policy: script-src 'nonce-{random_nonce}' and <script nonce="{random_nonce}> (docs) when we get a chance, in anticipation of this requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant