Software or Data Integrity Failures
Code or data is trusted without checking it wasn't changed.
What it is
The app accepts code or data from somewhere and assumes it is the original: a script from a CDN, an auto-update, a serialized object in a cookie. If anyone in the middle can change it, they control your app.
What can happen
- A compromised CDN injects code into every page.
- Tampered cookies or hidden fields change prices or roles.
- Unsafe deserialization runs attacker code.
Example: Third-party script without integrity
<script src="https://cdn.example.com/chart.min.js"></script><script
src="https://cdn.example.com/chart.min.js"
integrity="sha384-..."
crossorigin="anonymous"
></script>With integrity (SRI) the browser refuses the file if a single byte changed.
How to prevent it
- Use Subresource Integrity for CDN files, or host them yourself.
- Never trust client-side data (cookies, hidden inputs) for prices or roles.
- Sign data you must hand to the client, and verify it when it comes back.
- Protect the CI pipeline: reviewed changes, limited secrets.
What CrimsonScan checks
Partly detectedThe heavy scan (ZAP) flags scripts loaded without an integrity attribute. Server-side deserialization and CI security can't be seen from a URL.