SRI HTML not parsable

OWASP 2017 A6 OWASP 2013-A5 WASC-13

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.

Latest Articles