T09 · Insecure Skill Coding Practices
- Location
SKILL.md:64- Finding
FortiCloud password-based authentication exposes reusable account credentials
- Content
View full analysis
", "password": "", "client_id": "", "grant_type": "password" } ``` ### Technical Analysis The skill declares `FORTISASE_API_TOKEN` as its required secret and describes read-only access as a prerequisite, but its main procedure instructs the operator or agent to handle a reusable FortiCloud username and password through the OAuth resource-owner password grant. Although the example contains placeholders rather than hardcoded credentials, following these instructions would place the real password in an agent-generated HTTP request body. Depending on the execution environment, sensitive request data could be retained in conversation records, tracing systems, debug logs, proxy logs, terminal history, or error reports. A reusable account password has a substantially larger security scope than a dedicated, revocable, read-only API token. It can also be usable outside the intended audit workflow and may grant access to other FortiCloud resources according to the account's IAM roles. ### Attack Path 1. An operator loads the skill and follows the documented authentication procedure. 2. The operator provides a FortiCloud username, password, and client identifier to the agent or an agent-controlled request tool. 3. The request body or surrounding execution context is retained in a prompt transcript, request trace, debug log, proxy log, or error report. 4. An attacker or unauthorized user obtains access to that retained record. 5. The attacker extracts the reusable FortiCloud credentials. 6. The attacker authenticates as the affected account and accesses FortiSASE or ...[truncated 861 chars]- Remediation
View remediation
