Skip to content

Read Snapchat user.plist values only where they follow their key - #2246

Merged
abrignoni merged 1 commit into
mainfrom
fix/snapchat-tsaf-empty-value
Sep 21, 2026
Merged

abrignoni merged 1 commit into
mainfrom
fix/snapchat-tsaf-empty-value

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Fixes how Snapchat - Account reads a key with no value. In a signed-out account's user.plist the key is followed by a single 0x00, and the reader took the next string in the file instead, so it reported username as user_id. A value now has to begin where its key ends.

  • Output on the 14 tested user.plist files is unchanged.
  • test_snapchat_tsaf_values.py covers a signed-in file, a signed-out file and a single empty value.

Reported by dfjsim (Snapchat_Auto).

🤖 Generated with Claude Code

A key with no value in user.plist is followed by a single 0x00, as on a
signed-out account's file. The reader took the next string in the file as
the value, so the Account artifact reported username as "user_id". A value
now has to begin where its key ends. Output on the tested user.plist files
is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 1010651 into main Sep 21, 2026
11 checks passed
@abrignoni
abrignoni deleted the fix/snapchat-tsaf-empty-value branch September 21, 2026 23:47
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