SRI HTML not parsable

By
Manieendar Mohan
Published on
04 Jul 2018
Vulnerability

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. The information generated by the API through HTML SRI cannot be parsed to the server. This leads to an incomplete process.

Example

The below code is an example of SRI.

            <link rel="stylesheet" href="https://site53.example.net/style.css"
                  integrity="sha384-+/M6kredJcxdsqkczBUjMLvqyHb1K/JThDXWsBVxMEeZHEaMKEOEct339VItX1zB"
                  crossorigin="anonymous">

      

Impact

The result generated by the API won’t be able to send the information to the server.

Mitigation / Precaution

  • This vulnerability can be fixed by properly implementing SRI.

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