T09 · Insecure Skill Coding Practices
- Location
scripts/pocket-lens.mjs:21- Finding
Arbitrary API Endpoint Can Receive Bearer Credentials and Financial Data
- Content
View full analysis
`. ``` ### Technical Analysis `POCKET_LENS_API_URL` is trusted without validating its scheme, hostname, port, path, or ownership. The script subsequently attaches the PocketLens bearer credential to every request made through this endpoint. When creating a transaction, the request body can contain sensitive personal financial information, including merchant names, transaction amounts, timestamps, card issuer names, categories, and descriptions. Read operations can also expose account identity, spending summaries, category information, and card billing details. Although network transmission to the default PocketLens service is necessary for the declared functionality, allowing an arbitrary endpoint to receive the production bearer credential and financial records is not necessary for normal operation and exc ...[truncated 1624 chars]- Remediation
View remediation
