T05 · Unauthorized Access and Privilege Escalation
- Location
index.js:26- Finding
Implicit Access to Persistent Agent Evolution Memory
- Content
View full analysis
f.startsWith('gep_prompt_Cycle_') && f.endsWith('.txt')) .sort() .reverse() .slice(0, historyLimit); const signalCounts = {}; const intentCounts = {}; const geneCounts = {}; const recentOutcomes = []; for (const file of files) { const filePath = path.join(evolutionPath, file); const content = fs.readFileSync(filePath, 'utf8'); ``` ### Technical Analysis Calling `predictNextAction()` without options automatically selects the absolute directory `/root/.openclaw/workspace/memory/evolution`. The function enumerates this persistent Agent-memory directory and reads the complete contents of matching historical prompt files before extracting signals, intents, selected gene names, and outcomes. The documented purpose refers generally to history analysis, but it does not clearly identify the sensitive absolute directory being accessed or require explicit authorization from the caller. Consequently, normal invocation of the public API crosses the skill package boundary and reads persistent Agent state by default. Th ...[truncated 2160 chars]- Remediation
View remediation
