Subresource Integrity (SRI) implemented, but external scripts are loaded over http

By
Nash N Sulthan
Published on
19 Jun 2018
Vulnerability
SRI

Subresource Integrity (SRI) is a W3C recommendation to provide a method to protect website delivery. Sub resource Integrity (SRI) provides a mechanism to check integrity of the resource hosted by third parties interface plug-ins like Content Delivery Networks (CDNs) and verifies that the fetched resource has been delivered to the user without unexpected manipulation. This ensures these assets have not been compromised for hostile purposes. Subresource Integrity (SRI) implemented, but in this server the external scripts are loaded over HTTP.

Impact

An attacker can gain access to Content Delivery Networks and cause huge damage the application. If the attacker is one of the persons who had developed one of the CDN used by the application. He can gain access to your system by tweaking the content from CDN.

Mitigation / Precaution

  • It is recommended to implement Sub resource Integrity correctly.

Written by
Nash N Sulthan
Nash N Sulthan
Cyber Security Lead Engineer
Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 10 days