T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:17- Finding
Employee investigation records can be queried without documented authorization controls
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 17-25
Vulnerability Type: Missing authorization and data-minimization controls
Risk Level: HighRelevant skill instructions:
text ## 输入参数 - 人员姓名 ## 执行流程 > Claude 请严格按以下步骤依次查询数据表并分析,注意每一步的依赖关系、输入与输出字段。 step_1_1:xx作为被处理人 从表【jd_rcp_case_dispose_insider_new】输入人员姓名【namebdp】获取对应的案件编号,处理结果 step_1_2:xx出现在案件标题、描述、内容、摘要 从表【jd_rcp_case_info】输入人员姓名,筛选 title_search LIKE '%{name}%' OR summary_search LIKE '%{name}%' OR description_search LIKE '%{name}%' OR content_search LIKE '%{name}%' 来获取案件编号 step_2:查询案件的详情 从表【jd_rcp_case_info】中输入案件编号,获取案件详情,返回案件编号、案件名称、案件描述、案件状态、负责人、跟进部门、举报方式、调查结论、处理结果 依赖 step_1.casenumTechnical Analysis
The skill accepts only an employee name before instructing the agent to search internal case tables and disclose case identifiers, descriptions, reporting methods, investigation conclusions, and disciplinary outcomes. It does not require verification of the requester's identity, role, business purpose, case-level access, or relationship to the employee.
These records are likely to contain confidential employee, complaint, and investigation information. The instructions also do not require field-level redaction, result limits, access logging, consent, or approval. Consequently, any user able to invoke the skill may be treated as authorized to retrieve the complete record set.
Attack Path
- A user invokes the skill and provides the name of a targeted employee.
- The skill searches
jd_rcp_case_dispose_insider_newfor cases in which that employee was the subject of a disposition. - It searches the title, summary, description, and content fields of
jd_rcp_case_infofor additional references to the employee. - The resulting case numbers are used to retrieve full case details.
- The agent returns confidential descriptions, reporting methods, investigation conclusions, and outcomes without a documented author ...[truncated 677 chars]
- Remediation
View remediation
Remediation Suggestions
- Require authenticated requester identity and role-based authorization before performing any query.
- Enforce authorization in the database or service layer rather than relying solely on agent instructions.
- Add case-level and employee-level access checks, including verification of the requester's department, assigned cases, and approved business purpose.
- Deny access by default when authorization context is absent or ambiguous.
- Return only fields necessary for the authorized purpose. Redact complainant identities, reporting channels, free-form narratives, and other sensitive personal information by default.
- Apply result limits and prevent unrestricted enumeration through repeated name searches.
- Record the requester, purpose, searched employee, returned case identifiers, and timestamp in tamper-resistant audit logs.
- Require additional approval for especially sensitive investigation conclusions and disciplinary results.
- Add explicit instructions that the skill must not disclose records merely because a user knows an employee's name.
