Skip to content

fix(security): prevent gateway token from defaulting to 'undefined' string - #4873

Merged
gumadeiras merged 3 commits into
openclaw:mainfrom
Hisleren:main
Jan 30, 2026
Merged

gumadeiras merged 3 commits into
openclaw:mainfrom
Hisleren:main

Conversation

@Hisleren

Copy link
Copy Markdown
Contributor

Description

Fixes a critical security vulnerability where the Gateway token would default to the literal string "undefined" if the user left the input blank during installation.

Changes

  • Updated onboarding.gateway-config.ts to ensure tokenInput is treated as an empty string if undefined, triggering the randomToken() fallback correctly.
  • Applied a defensive fix in configure.gateway.ts to prevent similar issues.

Testing

  • Verified that leaving the token prompt blank now generates a random token instead of "undefined".

Related to private security report.

@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Jan 30, 2026
@gumadeiras gumadeiras self-assigned this Jan 30, 2026
@gumadeiras
gumadeiras merged commit 39eb0b7 into openclaw:main Jan 30, 2026
19 of 23 checks passed
gumadeiras added a commit that referenced this pull request Jan 30, 2026
@gumadeiras

Copy link
Copy Markdown
Member

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: 39eb0b7
  • Merge commit:

Thanks @Hisleren!

YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
ayushozha pushed a commit to ayushozha/openclaw that referenced this pull request Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants