Skip to content

feat: thunderbird mcp - #30

Closed
mudler wants to merge 23 commits into
masterfrom
feat/thunderbird-mcp
Closed

feat: thunderbird mcp#30
mudler wants to merge 23 commits into
masterfrom
feat/thunderbird-mcp

Conversation

@mudler

@mudler mudler commented Jul 20, 2026

Copy link
Copy Markdown
Owner

No description provided.

mudler and others added 23 commits July 20, 2026 10:41
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…parsing

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… url.Parse

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…dering)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ly on credential-load failure, and harden read-only DB opens

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Encoded slash/dot-dot surviving inside a decoded mailbox:// segment let
filepath.Join escape the profile directory (untrusted FolderURI from
get_message/reply_message/forward_message), enabling arbitrary read-only
local file read (e.g. .../%2e%2e%2f%2e%2e%2fetc%2fpasswd -> /etc/passwd).

Defense in depth: reject unsafe decoded segments ("", ".", "..", or any
containing a path separator or NUL) and backstop with a filepath.Rel
containment check; localMboxPath returns "" when it cannot resolve a path
provably inside a.Directory. GetMessage and loadDetail now surface a clear
error instead of a confusing open failure. Adds regression specs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Testing against a genuine NSS-generated key4.db/logins.json (produced via
PK11SDR_Encrypt) revealed that real Thunderbird/Firefox write the PBKDF2 prf
AlgorithmIdentifier with no parameters, and may omit the optional keyLength.
Our ASN.1 structs marked AlgorithmIdentifier.Parameters (and pbkdf2Params
KeyLength/Prf) as required, so the parse failed and recoverMasterKey
mis-reported it as a master-password profile (ErrMasterPassword).

Mark those fields asn1:"optional". Add a regression test that decrypts a
committed REAL NSS fixture (not one produced by our own encoder). Also add
json tags to CalendarRef so list_calendars returns lowercase keys like the
other tools.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…action enums

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mudler mudler closed this Jul 20, 2026
@mudler
mudler deleted the feat/thunderbird-mcp branch July 20, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant