T05 · Unauthorized Access and Privilege Escalation
- Location
src/modules/developer-agent.ts:28- Finding
Read-Only Skill Exposes Account Credential Management Operations
- Content
View full analysis
{ return this.c.post('/auth/keys', params); } /** List your API keys */ async listKeys(include_revoked = false): Promise { return this.c.get('/auth/my/keys', { params: { include_revoked } }); } /** Revoke an API key */ async revokeKey(keyId: string): Promise { // DELETE — use post trick with method override, or add delete to client if needed await this.c.get(`/auth/my/keys/${encodeURIComponent(keyId)}`); } /** Rotate an API key (get a new secret) */ async rotateKey(keyId: string): Promise<{ key: string; [k: string]: unknown }> { return this.c.post(`/auth/my/keys/${encodeURIComponent(keyId)}/rotate`, {}); } /** Verify an API key is valid */ async verifyKey(key: string): Promise<{ valid: boolean; tier?: string; [k: string]: unknow ...[truncated 1818 chars]- Remediation
View remediation
