Repository navigation
fix(qqbot): security hardening — gateway validation, atomic state, sanitized logging #6200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wenshao
merged 21 commits into
QwenLM:main
from
Eric-GoodBoy-Tech:fix/qqbot-security-hardening
Jul 3, 2026
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
43b3fd0
fix(qqbot): validate gateway URL protocol to prevent SSRF
Eric-GoodBoy-Tech 9c248ba
fix(qqbot): atomic state persistence and error log sanitization
Eric-GoodBoy-Tech 8774eb9
fix(qqbot): add replyMsgId validation in restoreQQState()
Eric-GoodBoy-Tech 9786cd9
fix(qqbot): add test coverage for restoreQQState filters, atomic writ…
Eric-GoodBoy-Tech 46910de
docs(qqbot): update restoreQQState doc and add disposed guard comment
Eric-GoodBoy-Tech 3ec3877
docs(qqbot): update validateGatewayUrl docstring to reflect TLS enfor…
Eric-GoodBoy-Tech 231f7c7
fix(qqbot): address wenshao review — hostname rejection, error saniti…
Eric-GoodBoy-Tech ebd6f30
fix(qqbot): address PR review — drain body, narrow gateway hostname
Eric-GoodBoy-Tech 2ccbfe6
test(qqbot): tighten token-error assertion to exact match
Eric-GoodBoy-Tech 14ea726
test(qqbot): add connect retry sanitization + msgSeqMap edge-case tests
Eric-GoodBoy-Tech a1367e0
fix(qqbot): address wenshao review round 3 — error preservation, vali…
Eric-GoodBoy-Tech 3e8f713
test(qqbot): fix connect retry sanitization assertion — sanitizeLogTe…
Eric-GoodBoy-Tech 707b752
fix(qqbot): address wenshao review — error preservation, validation l…
Eric-GoodBoy-Tech 483305e
fix(qqbot): add Array.isArray guards and replyMsgId drop logging in r…
Eric-GoodBoy-Tech 3da730f
fix(qqbot): drain response body in token error path, sanitize URL Typ…
Eric-GoodBoy-Tech eff0084
fix(qqbot): test Infinity rejection via 1e999 raw JSON, not JSON.stri…
Eric-GoodBoy-Tech 9eff75f
fix(qqbot): address PR #6200 review — beforeExit hook, key validation…
Eric-GoodBoy-Tech 2acf178
fix(qqbot): address PR #6200 review round — non-object JSON restore, …
Eric-GoodBoy-Tech a9bd70c
fix(qqbot): hoist tmpPath declaration before try block in saveQQState
Eric-GoodBoy-Tech 548512a
fix(qqbot): update beforeExit JSDoc to accurately describe behavior
Eric-GoodBoy-Tech 86615ea
fix(qqbot): drain response body in fetchGatewayUrl error path
Eric-GoodBoy-Tech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.