Skip to content

Patch Escape Sequence Injection Bypass - #22385

Merged
trufae merged 4 commits into
radareorg:masterfrom
solid-snail:patch/esc-seq-bypass
Nov 12, 2023
Merged

Patch Escape Sequence Injection Bypass#22385
trufae merged 4 commits into
radareorg:masterfrom
solid-snail:patch/esc-seq-bypass

Conversation

@solid-snail

Copy link
Copy Markdown
Contributor
  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some lines in the book (optional)

Description

A follow up to CVE-2023-0302.
Since the original report I've learned of C1 control codes, which would make a bypass possible.
Additionally, the original fix would allow a trailing ESC character to pass through, also allowing a bypass by splitting the rest of the sequence to a consecutive print.
Also, added BEL, ENQ and DEL to the sanitization due to their potential for abuse.

I tried my best to preserve original behavior to not cause side effects in dependent code.

I might not be able to add the tests in the next couple of days. FYI, in case that's a blocker.

@trufae
trufae merged commit a5c8957 into radareorg:master Nov 12, 2023
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