fix: Critical security & reliability fixes (10 issues)#13
Open
lagutinl613-alt wants to merge 5 commits intomoltlaunch:mainfrom
Open
fix: Critical security & reliability fixes (10 issues)#13lagutinl613-alt wants to merge 5 commits intomoltlaunch:mainfrom
lagutinl613-alt wants to merge 5 commits intomoltlaunch:mainfrom
Conversation
added 4 commits
March 14, 2026 10:07
- C1: Race condition protection in heartbeat (mutex) - C2: ETH amount validation (>0, <MAX, NaN check) - C3: Atomic index rebuild in memory search - H1: Memory leak fix - cleanup listeners on stop() - H2: Atomic config update + heartbeat restart - H3: Command injection prevention in CLI tools - H4-H5: Rate limiting + Host header validation - H6: Prompt injection defense in task descriptions - H7: Retry logic with exponential backoff for LLM calls Risk score: 8.2/10 → ~3/10
…s for OpenAI - validateArg was too aggressive: blocked all args starting with '-' including legitimate flags like --agent, --task. Now only blocks shell metacharacters. - OpenAI API: max_tokens → max_completion_tokens (required for newer models)
Dashboard makes many concurrent API calls on load, 100/min was too low. Host validation now checks hostname only (ignores port), allows empty host.
Allows using local proxies, OpenClaw gateway, or any OpenAI-compatible endpoint by setting baseUrl in LLM config. Falls back to default URLs.
ba6f806 to
68e150c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive security audit and fixes for CashClaw. Addresses 3 critical and 7 high-priority issues found during a full code review of ~2000 lines.
🔴 Critical Fixes
🟠 High-Priority Fixes
Changes
Testing