Back to skill

Security audit

Reply Session Fix 43ytnoa Xzc0tc

Security checks for vulnerabilities and agentic risk

Overview

This skill is openly about fixing OpenClaw session conflicts, but it asks for persistent, privileged changes that can inject browser code, delete sessions, and patch installed gateway files.

Install only if you are an administrator for this specific OpenClaw host and you are prepared to review the external scripts and JavaScript first. Prefer an upstream or reviewed OpenClaw fix; if this is used temporarily, require explicit approval for session deletion, keep backups, document rollback for Nginx/systemd/package changes, and restrict credentials to the narrowest possible recovery action.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • Tool Hijacking and SpoofingModifies or replaces tools so legitimate-looking calls execute attacker logic
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
Findings (4)

T06 · System Persistence

Error
Location
SKILL.md:58
Finding

Persistent System Watchdog with Automated Session-Deletion Capability

Content
View full analysis
`, ruft für `dashboard:*` / `subagent:*` Keys `POST http://127.0.0.1:18791/api/openclaw/sessions/delete` auf. **Fasst `agent:main:main` NIEMALS an** (hard rule im Script). **Log:** `memory/reply-session-heal.log` (AUTO_HEAL / HEALED / HEAL_FAILED Einträge) **Alarm nur bei HEAL_FAILED:** Wenn stats-server nicht antwortet, wird `memory/reply-session-ALARM.md` geschrieben. Sonst silent. **Test manuell:** `bash /root/.openclaw/workspace/scripts/reply-session-conflict-watchdog.sh` ``` ### Technical Analysis The Skill instructs the operator or agent to maintain a systemd timer under `/etc/systemd/system`, causing a watchdog to run every 60 seconds. The watchdog reads gateway logs and invokes an API capable of deleting sessions. A threshold of one matching log event is sufficient to initiate deletion. A systemd timer is a cross-session persistence mechanism. Its effects continue after the Skill invocation and can survive user logout, application restarts, and software updates. The referenced watchdog implementation is outside the audited project, so the claimed restriction against deleting `agent:main:main` cannot be verified. The low threshold and broad `dashboard:*` and `subagent:*` matching rules ...[truncated 1505 chars]
Remediation
View remediation

T07 · Tool Hijacking and Spoofing

Error
Location
SKILL.md:80
Finding

Modification of Installed Gateway Code Through an Unbundled Patch Script

Content
View full analysis
Remediation
View remediation

T07 · Tool Hijacking and Spoofing

Error
Location
SKILL.md:31
Finding

Application-Origin JavaScript Injection into All Proxied HTML Responses

Content
View full analysis
' ''; } location = /reply-conflict-heal.js { alias /var/www/openclaw-downloads/reply-conflict-heal.js; default_type application/javascript; add_header Cache-Control "no-store, no-cache, must-revalidate"; } ``` Nach jeder Änderung: `nginx -t && systemctl reload nginx` und Verify per `curl -sSI https://openclaw.raumkommander.at/reply-conflict-heal.js` → muss `200` liefern. **Version-Bump:** Wenn du das Script änderst, `?v=1` → `?v=2` in der sub_filter-Zeile hochzählen (Cache-Bust). ``` ### Technical Analysis The Nginx `sub_filter` configuration rewrites every HTML response under `location /` and appends a script element before ``. The script consequently executes in the OpenClaw application origin and receives the same browser trust context as native application code. The documentation explicitly states that the payload intercepts Fetch and XMLHttpRequest responses, clears or ...[truncated 1965 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:127
Finding

Excessive Privileged Access Required for Session-Recovery Operations

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest description and the entire operational guidance are written in German, with no indication that users may choose another language or that the skill is intended only for a German-speaking or region-specific audience. This creates a natural-language locale policy issue because the skill effectively imposes a specific language without opt-in or documented justification.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 54)May include surrounding context.

}

text

Nach jeder Änderung: `nginx -t && systemctl reload nginx` und Verify per `curl -sSI https://openclaw.raumkommander.at/reply-conflict-heal.js` → muss `200` liefern.

**Version-Bump:** Wenn du das Script änderst, `?v=1` → `?v=2` in der sub_filter-Zeile hochzählen (Cache-Bust).