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.
Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.

Written by
Manieendar Mohan
Manieendar Mohan
Cyber Security Lead Engineer
Find website security issues in a flash
Improve your website's security posture with proactive vulnerability detection.
Free website security assessment