T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:501- Finding
Unrestricted Process Environment Variable Collection
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:501-518
Vulnerability Type: Excessive access to sensitive runtime configuration
Risk Level: MediumEvidence
text **工具调用:** 并行调用 `mcp__arthas__sysprop`、`mcp__arthas__sysenv`、`mcp__arthas__vmoption`╔══════════════════════════════════════════════════════════════════╗ ║ ⚙️ 系统参数 ║ ╠══════════════════════════════════════════════════════════════════╣ ║ JVM 参数 (关键) ║ ║ -Xms/Xmx: {ms} / {mx} ║ ║ -Xss: {value} ║ ║ GC: {gc相关} ║ ║ Metaspace: {metaspace相关} ║ ║ HeapDump: {dump相关} ║ ╠══════════════════════════════════════════════════════════════════╣ ║ 环境变量 (业务相关) ║ ║ SPRING_PROFILES_ACTIVE: {value} ║ ║ JAVA_HOME: {value} ║ ║ SERVER_PORT: {value} ║
text Technical Analysis
The system-parameter workflow directs the agent to invoke
mcp__arthas__sysenvalongside JVM diagnostic tools. A process environment commonly contains secrets such as API keys, database credentials, cloud access tokens, proxy credentials, private service endpoints, and authentication configuration.The documented output only requires a few operational variables, but the skill does not constrain environment collection to an allowlist. It also does not define redaction rules, require user confirmation, or prevent sensitive values returned by the tool from entering the agent context. Consequently, a routine request for JVM parameters may expose information beyond what is required for JVM health analysis.
This is a least-privilege violation within the diagnosti ...[truncated 1423 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
mcp__arthas__sysenvfrom the default system-parameter workflow. - Query only explicitly required variables through an allowlist, such as
JAVA_HOME,SERVER_PORT, andSPRING_PROFILES_ACTIVE. - Require informed user confirmation before collecting any broader environment information.
- Redact names and values associated with
PASSWORD,PASS,SECRET,TOKEN,KEY,CREDENTIAL,AUTH,COOKIE, and connection-string patterns. - Do not place unredacted environment results in tables, logs, summaries, or persistent memory.
- Return variable presence or a sanitized summary instead of the raw value whenever the value is not essential.
- Document that environment inspection is potentially sensitive and should only be used by authorized operators against approved JVM targets.
- Remove
