Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netalico/magento-1-csp
A Magento 1 module to easily create and manage a Content Security Policy (CSP)
https://github.com/netalico/magento-1-csp
Last synced: 3 months ago
JSON representation
A Magento 1 module to easily create and manage a Content Security Policy (CSP)
- Host: GitHub
- URL: https://github.com/netalico/magento-1-csp
- Owner: netalico
- Created: 2019-10-19T06:55:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T14:24:14.000Z (over 4 years ago)
- Last Synced: 2024-05-10T09:31:11.516Z (6 months ago)
- Language: PHP
- Homepage: https://netalico.com
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- mageres - Magento 1 Content Security Policy (CSP) Enforcement Extension - A Magento 1 module to easily create and manage a Content Security Policy (CSP) (Security / Free)
README
# Easy Magento 1 Content Security Policy (CSP) Enforcement
1. Go to https://report-uri.com/register and register for a free account.
2. Go to CSP->Wizard.
3. Click "Create your Wizard reporting address."
4. Copy your current subdomain.
5. Install the Magento module.
6. Go to System->Configuration->Netalico->CSP.
7. Enable the extension, paste the subdomain in the Report URI Subdomain field, and a part of your checkout URL (e.g. "onepage") and hit save.
8. Clear your Magento cache and browse around the frontend of your website. Make sure you go to an example of every type of page, including the cart and the checkout.
9. On https://report-uri.com Go back to CSP->Wizard and click allow on everything you recognize. If you see any suspcicious scripts, you should investigate and verify that they're legitimate.
10. Click on CSP-My Policies and copy the policy text to Magento in System->Configuration->Netalico->CSP->Policy.
11. For maximum security, go back to Magento and System->Configuration->Netalico->CSP change the Reporting Mode to enforce. 12. Alternatively, you can set the Reporting Mode to Reporting Only (but if you do that on your live site, you'll probably surpass the free limit of Report-Uri.com).
13. I recommend you at least enable Checkout Lockdown which enforces your CSP on the checkout, which is the most vulnerable part of the site for js infections.