bcgov / SIMS

Student Information Management System. Post-Secondary Student Financial Aid System
Apache License 2.0
24 stars 13 forks source link

Missing check for SRI (Subresource Integrity) support #3610

Closed JasonCTang closed 3 weeks ago

JasonCTang commented 1 month ago

Describe the Bug The third-party links/scripts don't have integrity attribute for the browser to confirm they didn't compromised.

Subresource Integrity (SRI) is a method that allows web application developers to ensure that resources hosted on third party services such as Content Delivery Networks (CDN) has been delivered without any unexpected modifications.

The user-agent can't verify scripts from third-party services. In case of compromise of the third-party service, the user is not protected. script and link tags with src from another domain are not supporting integrity check. This can be exploited if the service that have the script is compromise.

Affected URLS

Recommended Fix Add Subresource Integrity to every script/link with source not in your domain - See scan results documentation.

Additional Information

Technical

andrewsignori-aot commented 3 weeks ago

Demo

SRI (Subresource Integrity)

image.png

Please note form.io CDN is no longer used.

Content-security-policy

image.png