T09 · Insecure Skill Coding Practices
- Location
twitter_client.py:251- Finding
Twitter Credentials, TOTP Codes, Proxy Credentials, and API Key Transmitted to a Third Party
- Content
View full analysis
Dict[str, Any]: print( "⚠️ WARNING: Transmitting credentials to third-party API", file=sys.stderr ) print( "⚠️ Ensure you are using a dedicated test account only!", file=sys.stderr ) data = { "user_name": username, "email": email, "password": password, "proxy": proxy } if totp_code: data["totp_code"] = totp_code return self._request("POST", "/twitter/user_login_v3", data=data) ``` The Skill documentation also explicitly instructs users to submit the credentials: ```bash curl -X POST "https://api.aisa.one/apis/v1/twitter/user_login_v3" \ -H "Authorization: Bearer $AISA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_name": "test_automation_account", "email": "test@example.com", "password": "unique_password_here", "proxy": "http://user:pass@proxy-ip:port" }' ``` ### Technical Analysis The login operation sends a Twitter username, email ...[truncated 2566 chars]- Remediation
View remediation
