T05 · Unauthorized Access and Privilege Escalation
- Location
references/api-user.md:161- Finding
Third-Party Transmission of Login-Equivalent TikTok Session Cookies
- Content
View full analysis
Vulnerability Details
File Location:
references/api-user.md:161-188; related transmission policy inSKILL.md:67-79
Vulnerability Type: Session credential disclosure and excessive privilege
Risk Level: HighVulnerable Code Snippet
markdown ## fetch_user_collect `GET /api/v1/tiktok/web/fetch_user_collect` <!-- Full path: /api/v1/tiktok/web/fetch_user_collect --> ### Parameters | Parameter | Type | Required | Description | Example | |---|---|---|---|---| | cookie | string | ✅ | User cookie | Your_Cookie | | secUid | string | ✅ | User secUid | Your_SecUid | | cursor | integer | | Page cursor (default: 0) | | | count | integer | | Number per page (default: 30) | | | coverFormat | integer | | Cover format (default: 2) | |The Skill also explicitly states:
markdown - Session cookies are login-equivalent credentials. - All API requests are sent to `https://www.aconfig.cn`. Your credentials are transmitted to this third-party service.Technical Analysis
The
fetch_user_collectendpoint requires a complete TikTok user session cookie and sends it to the external MaxHub service. The documentation acknowledges that a session cookie is equivalent to an authenticated login and that the endpoint accesses the authenticated user's private collection list.A session cookie is a bearer credential. Any party possessing it may be able to impersonate the user until the session expires or is revoked. A warning does not enforce safe handling and does not reduce the privilege granted to the receiving service.
This exceeds the minimum privileges required for the declared TikTok data-analysis functionality. Public video, profile, trend, search, and advertising analysis should not require access to a user's authenticated session.
Attack Path
- A user asks the Agent to retrieve the user's private TikTok collection.
- The Agent determines that
fetch_user_collect...[truncated 1102 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove endpoints that require complete TikTok session cookies from the general analytics Skill.
- Use an official, scoped OAuth or delegated authorization flow if authenticated data access is legitimately required.
- Never request session cookies through Agent prompts or include them in URLs, query parameters, generated commands, logs, or model output.
- Enforce an explicit prohibition against sending account cookies to third-party intermediaries.
- Separate private-account functionality into an independently reviewed, opt-in component with clear consent and least-privilege scopes.
- Redact
Cookie,Authorization, and token fields in all request logging and telemetry. - If a cookie has already been submitted, instruct the affected user to revoke active sessions and rotate credentials immediately.
- Prefer public endpoints for video and profile analysis, even when authenticated endpoints may return more complete results.
