You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves 29 security issues identified by CodeQL scanning:
Security fixes:
- Log injection (27 instances): Sanitize user-provided values before logging
to prevent attackers from injecting fake log entries via newline characters
- Unsafe quoting (1 instance): Use base64 encoding instead of embedding JSON
directly in shell commands to prevent quote breakout
- JS log injection (1 instance): Sanitize event names in frontend logging
- Unused variable (1 instance): Remove unused setChatOpen setter
Implementation:
- Created logutil.SanitizeForLog() helper to remove newlines and control
characters from user input before logging
- Applied sanitization across all backend handlers and orchestrator code
- Fixed unsafe shell command construction in openclaw.go by using base64
- Sanitized frontend console.log output in useChat.ts
- Prefixed unused variable with underscore in InstanceDetailPage.tsx
All fixes maintain existing functionality while eliminating security risks.
0 commit comments