Reconnaissance and Enumeration
A tester wants to find API keys that a web application exposes to every visitor. Where should the tester look?
Show the answer
Correct answerD. Client-side JavaScript files
AWhy not this: The SAM database holds local Windows password hashes, not API keys.
BWhy not this: Cookies after login hold session tokens, which are issued per user, not API keys shown to all visitors.
CWhy not this: The AWS credentials file holds cloud access keys on one machine, not data served to visitors.
DWhy this is right: JavaScript is sent to every visitor, so keys hardcoded in it can be read by anyone.
Front-end JavaScript is delivered to every visitor, and developers often hardcode API keys in it. The cookie jar holds session tokens, which are issued per login and are not shared with all visitors.