During a recent PCI audit, the auditor identified what they believed to be major security risks in our system:
- The ability to download static resources such as images, CSS, and JavaScript from our website without authentication
- The presence of comments in our JavaScript code
In my opinion, these concerns do not pose a significant security risk. The static resources do not contain sensitive data from our backend or customer information. The comments in the JavaScript are simply explanations of the code's functionality, which would be easily understood by anyone familiar with JavaScript.
How does this constitute "information leakage"?
Should comments within JavaScript be considered a security threat?