Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Vuln-Dev
[Top] [All Lists]

Re: Hafiye-1.0 Terminal Escape Sequence Injection Vulnerability

Subject: Re: Hafiye-1.0 Terminal Escape Sequence Injection Vulnerability
Date: Wed, 25 Aug 2004 01:36:52 +0300
Jan Minar wrote:
On Mon, Aug 23, 2004 at 09:32:15PM +0300, Serkan Akpolat wrote:

If Hafiye has been started with -n packet count option ,
the vulnerability could allow remote code execution.
For remote code execution  the victim must press Enter after program exit.


                      "\x1b""]2;Insecure?""\x07\x0a",
                      "\x07\x07\x07\x07\x07\x07",
                      "\x1b""]2;;echo Owned > /root/Owned.txt"
                      "\x07\x1b""[21t""\x1b""]2;xterm""\x07"
                      "Abnormal Termination""\x1b"
                      "[8m;""\x0a"};


That is, with broken terminals/emulators, such as is rxvt in Debian
Woody (at the time of my writing this).  These devices/programs should
have been fixed long time ago in the first place.  (Not that (albeit
crippled) echo-back escape sequences were a good idea anyway.)

Jan.



True. My test environment was default slack 9.1 and fbsd 4.7 with xterm. Echo-back esc-sequence seems to be fixed in the current xterm.



<Prev in Thread] Current Thread [Next in Thread>