Skip to content

FIX: report Unicode tag presence correctly when decoding - #2552

Closed
Sylvester Kaczmarek (sylvesterkaczmarek) wants to merge 2 commits into
microsoft:mainfrom
sylvesterkaczmarek:fix/ascii-smuggler-hidden-tag-detection
Closed

FIX: report Unicode tag presence correctly when decoding#2552
Sylvester Kaczmarek (sylvesterkaczmarek) wants to merge 2 commits into
microsoft:mainfrom
sylvesterkaczmarek:fix/ascii-smuggler-hidden-tag-detection

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor

Description

Fixes the logging-only Unicode-tag detection defect described in #2539.

AsciiSmugglerConverter.decode_message currently infers whether hidden Unicode tags were present by comparing decoded and input string lengths. This can report that no hidden tags were found for a fully hidden payload.

This change tracks whether a Unicode Tag code point was actually encountered and uses that signal for logging.

Tests

Adds regression coverage for fully hidden payloads and ordinary plaintext.

@romanlutz

Copy link
Copy Markdown
Contributor

Duplicate of #2540

@romanlutz Roman Lutz (romanlutz) marked this as a duplicate of #2540 Sep 8, 2026
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.

2 participants