Sensitive Data Exposure
Hardcoded Sensitive Information in JavaScript
Vulnerability: Hardcoded Sensitive Information
Vulnerable Code:
Reason for vulnerability: Sensitive information like API keys should not be hardcoded in the source code as it can be easily extracted.
Fixed Code:
Reason for fix: Using environment variables to store sensitive information keeps it out of the source code and limits its exposure.
Last updated