T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/server_v3.py:1274- Finding
Unauthenticated Administrative API Exposed to the Local Network
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is an audit and rollback tool, but it exposes powerful local operations and sensitive snapshots with weak controls.
Review this carefully before installing. Only run it on a trusted machine, do not expose port 8080 to a network, avoid using it with privileged accounts, remove ~/.ssh and whole-home snapshots from defaults, and treat rollback as experimental rather than a backup. Do not copy the destructive examples into real directories.
scripts/server_v3.py:1274Unauthenticated Administrative API Exposed to the Local Network
assets/templates/dashboard_v3.html:675Stored Cross-Site Scripting in Operation and Alert Rendering
scripts/audit_wrapper.sh:18Python Heredoc Injection and Unsafe Command Evaluation in Audit Wrapper
scripts/logger.py:105Fail-Open and Bypassable Permission Enforcement
scripts/snapshot.py:79Sensitive SSH and Home-Directory Data Duplicated into Persistent Snapshot Storage
scripts/server.py:282Flask Debug Server Exposed on All Network Interfaces
This is another duplicate of the same core issue: a dangerous recursive deletion example is shown in a way that could desensitize operators to its severity. Because the skill markets mistake prevention and instant recovery, the surrounding context makes such examples more dangerous, not less.
**实现位置:** `scripts/describer.py`
**效果:**
- ❌ 之前:`exec run_command rm -rf ~/Desktop/截图`
- ✅ 现在:`删除了 ~/Desktop/截图`
**支持的操作类型:**
This is another duplicate of the same core issue: a dangerous recursive deletion example is shown in a way that could desensitize operators to its severity. Because the skill markets mistake prevention and instant recovery, the surrounding context makes such examples more dangerous, not less.
**实现位置:** `scripts/describer.py`
**效果:**
- ❌ 之前:`exec run_command rm -rf ~/Desktop/截图`
- ✅ 现在:`删除了 ~/Desktop/截图`
**支持的操作类型:**
This is another duplicate of the same core issue: a dangerous recursive deletion example is shown in a way that could desensitize operators to its severity. Because the skill markets mistake prevention and instant recovery, the surrounding context makes such examples more dangerous, not less.
**实现位置:** `scripts/describer.py`
**效果:**
- ❌ 之前:`exec run_command rm -rf ~/Desktop/截图`
- ✅ 现在:`删除了 ~/Desktop/截图`
**支持的操作类型:**
This is another duplicate of the same core issue: a dangerous recursive deletion example is shown in a way that could desensitize operators to its severity. Because the skill markets mistake prevention and instant recovery, the surrounding context makes such examples more dangerous, not less.
**实现位置:** `scripts/describer.py`
**效果:**
- ❌ 之前:`exec run_command rm -rf ~/Desktop/截图`
- ✅ 现在:`删除了 ~/Desktop/截图`
**支持的操作类型:**
The example audited_exec("rm ~/Desktop/test.txt") demonstrates passing raw shell deletion commands into an execution wrapper. Although the sample target is a test file, documenting direct shell passthrough in an audit wrapper encourages unsafe operational patterns and may be copied into real environments.
from scripts.audited_ops import audited_exec
audited_exec("rm ~/Desktop/test.txt")
### 2. describer.py - 智能描述生成
The code snippet demonstrates unsafe parameterization of a generic command execution pathway with rm -rf against a user path. This is risky because readers may infer such commands are sanctioned, auditable, and recoverable by design, even when those assumptions may be false.
desc = OperationDescriber.describe( "exec", "run_command", {"command": "rm -rf ~/Desktop/截图"} )
The code snippet demonstrates unsafe parameterization of a generic command execution pathway with rm -rf against a user path. This is risky because readers may infer such commands are sanctioned, auditable, and recoverable by design, even when those assumptions may be false.
desc = OperationDescriber.describe( "exec", "run_command", {"command": "rm -rf ~/Desktop/截图"} )
The code snippet demonstrates unsafe parameterization of a generic command execution pathway with rm -rf against a user path. This is risky because readers may infer such commands are sanctioned, auditable, and recoverable by design, even when those assumptions may be false.
desc = OperationDescriber.describe( "exec", "run_command", {"command": "rm -rf ~/Desktop/截图"} )
The quick-start example instructs users to create and then delete a Desktop file via audited_exec, reinforcing that arbitrary shell deletion is a normal workflow. Even though framed as a demo, users may adapt the pattern to valuable files and overestimate rollback reliability.
python3 << 'EOF' from audited_ops import audited_exec audited_exec("echo 'test' > ~/Desktop/test.txt") audited_exec("rm ~/Desktop/test.txt")
EOF
The line contains a concrete rm -rf payload against a user directory, which is an inherently dangerous parameter to showcase in a command-execution wrapper. In the context of an ops-management skill, users may run examples with elevated trust, making accidental data loss more likely.
使用:
# 替代普通命令
claw-exec 'rm -rf ~/Desktop/截图'
claw-exec 'mv ~/Desktop/duyu ~/Downloads/duyu'
The line contains a concrete rm -rf payload against a user directory, which is an inherently dangerous parameter to showcase in a command-execution wrapper. In the context of an ops-management skill, users may run examples with elevated trust, making accidental data loss more likely.
使用:
# 替代普通命令
claw-exec 'rm -rf ~/Desktop/截图'
claw-exec 'mv ~/Desktop/duyu ~/Downloads/duyu'
The line contains a concrete rm -rf payload against a user directory, which is an inherently dangerous parameter to showcase in a command-execution wrapper. In the context of an ops-management skill, users may run examples with elevated trust, making accidental data loss more likely.
使用:
# 替代普通命令
claw-exec 'rm -rf ~/Desktop/截图'
claw-exec 'mv ~/Desktop/duyu ~/Downloads/duyu'
The Python example includes a direct rm -rf payload, demonstrating unsafe parameter handling for an execution helper. This is especially risky in scripted contexts because a copied example can be embedded into automation and repeatedly cause irreversible deletion.
audited_exec("ls -la") audited_exec("rm -rf ~/Desktop/截图")
### 方案 3:OpenClaw 技能集成(需要配置)
The Python example includes a direct rm -rf payload, demonstrating unsafe parameter handling for an execution helper. This is especially risky in scripted contexts because a copied example can be embedded into automation and repeatedly cause irreversible deletion.
audited_exec("ls -la") audited_exec("rm -rf ~/Desktop/截图")
### 方案 3:OpenClaw 技能集成(需要配置)
The Python example includes a direct rm -rf payload, demonstrating unsafe parameter handling for an execution helper. This is especially risky in scripted contexts because a copied example can be embedded into automation and repeatedly cause irreversible deletion.
audited_exec("ls -la") audited_exec("rm -rf ~/Desktop/截图")
### 方案 3:OpenClaw 技能集成(需要配置)
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
### 🎯 Key Features
**Intelligent Descriptions:** Automatically translates technical commands into friendly Chinese (e.g., `rm -rf ~/Desktop/截图` → "删除了 ~/Desktop/截图"). No more cryptic command logs - every action is described in plain language.
**Auto-Snapshots:** Every operation automatically creates git-based snapshots before execution. Lightweight, efficient, and completely transparent - your files are protected without impacting performance.
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
### 🎯 Key Features
**Intelligent Descriptions:** Automatically translates technical commands into friendly Chinese (e.g., `rm -rf ~/Desktop/截图` → "删除了 ~/Desktop/截图"). No more cryptic command logs - every action is described in plain language.
**Auto-Snapshots:** Every operation automatically creates git-based snapshots before execution. Lightweight, efficient, and completely transparent - your files are protected without impacting performance.
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
### 💡 Why This Matters
Traditional audit logs show raw commands like `exec run_command rm -rf /path`. This skill shows "Deleted /path" and lets you undo it instantly. Peace of mind for every operation.
---
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
### 💡 Why This Matters
Traditional audit logs show raw commands like `exec run_command rm -rf /path`. This skill shows "Deleted /path" and lets you undo it instantly. Peace of mind for every operation.
---
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
**📝 Intelligent Chinese Descriptions**
Automatically translates technical commands into friendly language.
- Before: `exec run_command rm -rf ~/Desktop/截图`
- After: `删除了 ~/Desktop/截图`
**📸 Automatic Git-Based Snapshots**
This variant again highlights unsupported claims of multilingual dashboarding, permission controls, alerts, and seamless oversight, while suggesting rollback may be incomplete or broken. In a high-trust ops tool, incomplete safeguards combined with dangerous command execution create meaningful user-harm potential even without overt malice.
This variant again highlights unsupported claims of multilingual dashboarding, permission controls, alerts, and seamless oversight, while suggesting rollback may be incomplete or broken. In a high-trust ops tool, incomplete safeguards combined with dangerous command execution create meaningful user-harm potential even without overt malice.
This variant again highlights unsupported claims of multilingual dashboarding, permission controls, alerts, and seamless oversight, while suggesting rollback may be incomplete or broken. In a high-trust ops tool, incomplete safeguards combined with dangerous command execution create meaningful user-harm potential even without overt malice.
This variant again highlights unsupported claims of multilingual dashboarding, permission controls, alerts, and seamless oversight, while suggesting rollback may be incomplete or broken. In a high-trust ops tool, incomplete safeguards combined with dangerous command execution create meaningful user-harm potential even without overt malice.
This variant again highlights unsupported claims of multilingual dashboarding, permission controls, alerts, and seamless oversight, while suggesting rollback may be incomplete or broken. In a high-trust ops tool, incomplete safeguards combined with dangerous command execution create meaningful user-harm potential even without overt malice.
No suspicious patterns detected.