home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / exploits / kppp / kppp.txt
Encoding:
Internet Message Format  |  2002-10-21  |  1.8 KB

  1. Date: Wed, 29 Apr 1998 12:39:19 +0200
  2. From: "|[TDP]|" <tdp@psynet.net>
  3. To: BUGTRAQ@NETSPACE.ORG
  4. Subject: Security hole in kppp
  5.  
  6.   I found an xploitable bug in my kppp application that comes with KDE
  7. env.
  8. Local user can execute malicious code to obtain root access/shell.
  9.  
  10. gollum:~$ cd /usr/local/kde/bin
  11. gollum:/usr/local/kde/bin$ ls -la kppp
  12. -rwsr-xr-x   1 root     root       262516 Mar 15 01:17 kppp*
  13. ( ^- suid!)
  14.  
  15. gollum:/usr/local/kde/bin$ kppp -h
  16. kppp -- valid command line options:
  17.  -h describe command line options
  18.  -c account_name : connect to account account_name
  19.  -q : quit after end of connection
  20.  -r rule_file: check syntax of rule_file
  21.  
  22.  I discover that -c option is buggy and root xploitable buffer overflow.
  23.  
  24.  
  25.  With 244 or < chars (X's) executes with out problems
  26.  
  27.  With 245 chars (X's) gives me an error
  28.  
  29. gollum:/usr/local/kde/bin$ kppp -c
  30. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  31. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  32.  
  33. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  34.  
  35. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  36.  
  37. Virtual memory exceed in `new'
  38.  
  39.  With 246 or > (until about 1024) chars (X's) cause a core dump :)
  40.  
  41. gollum:/usr/local/kde/bin$ kppp -c
  42. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  43. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  44.  
  45. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  46.  
  47. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  48.  
  49. Segmentation fault (core dumped)
  50.  
  51. ^^^^^^^^^^^^  Security hole...  Dangerous, isn't it?
  52.  
  53.  
  54.  Remove the suid bit or wait for a patch
  55.  
  56.                                              -=[  [TDP] - H-13 MeMBaH
  57. ]=-
  58.                                                  -=[
  59. tdp@psynet.net    ]=-
  60.