Lucene search

K
huntrSolid-snail583133AF-7AE6-4A21-BEEF-A4B0182CF82E
HistoryJan 02, 2023 - 10:19 p.m.

ANSI Escape Sequence Injection

2023-01-0222:19:16
solid-snail
www.huntr.dev
7
escape sequences
injection
data concealment
code execution
hex dump
visual mode
disassembly
location search
bug bounty
linux
gnome terminal

0.001 Low

EPSS

Percentile

25.7%

Description

Injection of escape sequences opens up the possibility for concealing / modifying viewed data, and code execution (as some esc seqs feed data back to stdin).

Proof of Concept

poc

So far, the places I managed to find a successful injection are:

  • when running id from the file name
  • func signature in hex dump in visual mode
  • func signature in disassembly and comment in disassembly
  • func signature in location search (_ in visual mode)

In the poc it is demonstrated by a change in color.

Environment

radare2 5.8.1 29949 @ linux-x86-64 git.5.8.0-65-g1100e12169
commit: 1100e12169dbdbe10081d4094129a5247738ecb1

tested in gnome-terminal

0.001 Low

EPSS

Percentile

25.7%

Related for 583133AF-7AE6-4A21-BEEF-A4B0182CF82E