CRITICAL
Rule Definition
Many web applications and APIs do not properly protect sensitive data, such as financial, healthcare, and PII. Attackers may steal or modify such weakly protected data to conduct credit card fraud, identity theft, or other crimes. Sensitive data may be compromised without extra protection, such as encryption at rest or in transit, and requires special precautions when exchanged with the browser.
Remediation
Use other types than jQuery.sap.storage.Type.local for jQuery.sap.storage.
Violation Code Sample
var oStorage = jQuery.sap.storage(jQuery.sap.storage.Type.local)
oStorage.put("evSessionData", aProjectsToStore);
Fixed Code Sample
var oStorage = jQuery.sap.storage(jQuery.sap.storage.Type.session)
oStorage.put("evSessionData", aProjectsToStore);
Reference
https://blogs.sap.com/2014/06/29/sapui5-offline-with-jquerysapstorage/
Related Technologies
Technical Criterion
Secure Coding - Weak Security Features
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.