Upstream feature: hardening of OAuth, RSS fetching and skill bundle handling #24

Closed
opened 2026-11-02 10:38:36 +00:00 by tim · 2 comments
Owner

Seen in upstream v7.0.3 (2026-10-21, Rust rewrite): https://code.squarecows.com/ric/omnimem/releases

What upstream says: the 7.0.3 notes list "hardens OAuth, RSS fetching, and skill bundle handling" (and storing secrets in the OS keychain, which does not apply to a server container). The notes do not say what was fixed.

Why it may fit: these three areas exist in the Python fork too (mcp_server/oauth, rss_worker/ingester.py, memory/skill_transfer.py). Upstream hardening usually means an issue was found; the useful first step is a review of the upstream diff for these areas to see whether the same weakness exists here (for example RSS fetching to internal addresses, zip handling in skill import, token handling). Any real finding is a security fix and would go out as one, not as a feature.

Rough size: a review task first (read upstream commits for those areas), then fixes sized by what is found.

Upstream version looked at: v7.0.5.

Close this issue if you do not want it. Comment ok to approve it for implementation.

Seen in upstream **v7.0.3** (2026-10-21, Rust rewrite): https://code.squarecows.com/ric/omnimem/releases **What upstream says:** the 7.0.3 notes list "hardens OAuth, RSS fetching, and skill bundle handling" (and storing secrets in the OS keychain, which does not apply to a server container). The notes do not say what was fixed. **Why it may fit:** these three areas exist in the Python fork too (`mcp_server/oauth`, `rss_worker/ingester.py`, `memory/skill_transfer.py`). Upstream hardening usually means an issue was found; the useful first step is a review of the upstream diff for these areas to see whether the same weakness exists here (for example RSS fetching to internal addresses, zip handling in skill import, token handling). Any real finding is a security fix and would go out as one, not as a feature. **Rough size:** a review task first (read upstream commits for those areas), then fixes sized by what is found. Upstream version looked at: v7.0.5. Close this issue if you do not want it. Comment `ok` to approve it for implementation.
Author
Owner

Ok.

Ok.
tim closed this issue 2026-11-02 19:20:01 +00:00
Author
Owner

Review done, shipped as security release v6.9.4 (PR #26, release PR #27).

Fixed (each with a test that fails on the old code):

  • RSS worker SSRF: feeds, redirects and article links could reach private/loopback addresses; file: feeds were readable. New guarded fetch; opt-out RSS_ALLOW_PRIVATE_HOSTS.
  • Skill import zip bomb: ZipFile.read() inflated the full stream regardless of the declared size (458 MB for a 200 KB bundle). Reads are now capped.
  • OAuth: registered redirect URIs were not validated (e.g. javascript:); now validated and bounded.
  • OAuth: pending-login table was unbounded; now pruned and capped.

Reviewed, not changed: PKCE and exact redirect matching (done by the MCP SDK), login rate limit (exists), bundle entry names (allowlisted), plain tokens in Valkey (hashing would sign out all clients; Valkey is password protected and oauth keys are not in backups), no rate limit on /register (noted in the CHANGELOG).

Review done, shipped as security release v6.9.4 (PR #26, release PR #27). Fixed (each with a test that fails on the old code): - RSS worker SSRF: feeds, redirects and article links could reach private/loopback addresses; `file:` feeds were readable. New guarded fetch; opt-out `RSS_ALLOW_PRIVATE_HOSTS`. - Skill import zip bomb: `ZipFile.read()` inflated the full stream regardless of the declared size (458 MB for a 200 KB bundle). Reads are now capped. - OAuth: registered redirect URIs were not validated (e.g. `javascript:`); now validated and bounded. - OAuth: pending-login table was unbounded; now pruned and capped. Reviewed, not changed: PKCE and exact redirect matching (done by the MCP SDK), login rate limit (exists), bundle entry names (allowlisted), plain tokens in Valkey (hashing would sign out all clients; Valkey is password protected and oauth keys are not in backups), no rate limit on `/register` (noted in the CHANGELOG).
Sign in to join this conversation.
No labels
upstream-feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/omnimem#24
No description provided.