Skip to content

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

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

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

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.

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