T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:16- Finding
Unrestricted Correlation and Overexposure of Linked Account Data
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 16-25
Vulnerability Type: Missing authorization controls and excessive sensitive-data retrieval
Risk Level: HighVulnerable Skill Instructions
The following is a faithful English translation of the relevant instructions:
text ## Execution Process Claude, strictly query the data tables and analyze them in the following order. Pay attention to the dependencies and input/output fields of each step. step1: Goal: Query the payment PIN and login PIN using a WeChat UnionID. Operation: Query table {cdm_map_app_icc_connect_relation_da_new_nonsensitive} with {dst_val (UnionID), sub_type in (10501, 10502)} and return {src_val (PIN), index_json (sample data)}. Dependency: None. Note: 10501 means WeChat payment for marketplace orders; 10502 means WeChat login. step1: Goal: Query basic user information using the PIN. Operation: Query table {app_lb_acct_base_info} with {pin (JD account)} and return all fields. Dependency: step1.src_val.Technical Analysis
The skill directs the agent to correlate a WeChat UnionID with payment and login account identifiers and then retrieve every field from the corresponding account record. It does not require authentication, authorization, purpose validation, user consent, field-level filtering, or masking before performing the lookup.
The instruction to return “all fields” violates data-minimization principles and can disclose substantially more information than is necessary for account association. Labeling the relationship table as “nonsensitive” does not make the resulting identity correlation nonsensitive: combining a UnionID, payment PIN, login PIN, relationship metadata, and a full account record creates sensitive linked identity information.
This skill does not itself establish database privileges. However, when loaded by an agent that already has query access, it directs that access toward unre ...[truncated 1811 chars]
- Remediation
View remediation
Remediation Suggestions
- Require an authenticated requester identity and perform an explicit authorization check before either query.
- Restrict use to documented business purposes and require a case, ticket, or approval identifier for sensitive lookups.
- Verify that the requester is authorized for the specific UnionID or account rather than relying solely on broad table access.
- Replace “return all fields” with an explicit allowlist containing only the minimum fields required for the approved workflow.
- Mask or tokenize UnionIDs, PINs, and other identifiers in agent output, logs, and intermediate results.
- Separate access to the relationship table from access to account details and use narrowly scoped, read-only service credentials.
- Add row-level and column-level access controls to both tables.
- Reject bulk inputs and enforce rate limits to reduce account enumeration risk.
- Record requester identity, purpose, queried identifier, approved fields, timestamp, and result status in tamper-resistant audit logs without logging unnecessary sensitive values.
- Add a mandatory confirmation step before disclosing linked account information and return a minimal response by default.
- Define retention and deletion rules for query results and prevent sensitive records from being stored in conversation memory.
- Conduct a privacy and compliance review to determine whether linking these identifiers is permitted and whether user consent or additional approval is required.
