<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cwe-88 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cwe-88/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 24 Jul 2026 21:49:04 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cwe-88/feed.xml" rel="self" type="application/rss+xml"/><item><title>Pheditor Terminal Argument Injection Leads to Remote Code Execution</title><link>https://feed.craftedsignal.io/briefs/2026-07-pheditor-terminal-rce/</link><pubDate>Fri, 24 Jul 2026 21:49:04 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-pheditor-terminal-rce/</guid><description>A vulnerability in Pheditor's terminal feature (versions &lt;= 2.0.6) allows authenticated attackers to achieve arbitrary command execution via argument injection into allowlisted binaries, which can be chained with default credentials for effective unauthenticated remote code execution on the underlying host.</description><content:encoded><![CDATA[<p>Pheditor, a web-based code editor, contains a critical vulnerability (CWE-88) in its terminal feature that allows for arbitrary command execution. Affecting versions up to and including 2.0.6, the flaw stems from inadequate validation of arguments passed to allowlisted terminal commands. While the system attempts to restrict commands via a prefix-based allowlist and a denylist for shell metacharacters, it fails to sanitize arguments, permitting injection into binaries like <code>find</code>, <code>git</code>, <code>php</code>, and <code>tar</code>. Attackers can append malicious flags (e.g., <code>-exec</code> for <code>find</code>, <code>-r</code> for <code>php</code>, <code>--checkpoint-action</code> for <code>tar</code>) to these binaries, bypassing the allowlist to execute arbitrary code. This exploit leverages existing binaries and does not require shell metacharacters, surviving previous sanitization fixes. When combined with the hardcoded default <code>admin</code> password (GHSA-p4h7-p9rj-2pq2), this vulnerability can lead to effective unauthenticated remote code execution with web server privileges, posing a significant risk to Pheditor deployments.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker gains access to the Pheditor web interface by leveraging the hardcoded default <code>admin</code> password, achieving authenticated access.</li>
<li>The attacker navigates to the Pheditor's <code>terminal</code> action handler, which is designed to execute commands via <code>shell_exec</code>.</li>
<li>The attacker crafts a malicious command string that begins with an allowlisted binary (e.g., <code>find</code>, <code>git</code>, <code>php</code>, <code>tar</code>).</li>
<li>The crafted command includes arguments specific to the chosen binary that enable arbitrary command execution (e.g., <code>find ... -exec</code>, <code>git -c alias.x=</code>, <code>php -r</code>, <code>tar ... --checkpoint-action</code>).</li>
<li>The attacker sends a POST request containing this crafted <code>command</code> string to the <code>terminal</code> action.</li>
<li>Pheditor's <code>pheditor.php</code> code performs a prefix match against the <code>TERMINAL_COMMANDS</code> allowlist and checks for a denylist of shell metacharacters.</li>
<li>Since the command starts with an allowlisted binary and does not contain the forbidden metacharacters, the check passes.</li>
<li>The application executes the full crafted command via <code>shell_exec</code>, leading to arbitrary command execution on the host with the web server's privileges.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability results in arbitrary command execution on the host system, operating under the privileges of the web server process. This allows attackers to completely compromise the underlying server, leading to data exfiltration, modification, or deletion, installation of additional malware (e.g., backdoors, cryptocurrency miners), or complete system takeover. When combined with the hardcoded default <code>admin</code> password, this flaw effectively becomes an unauthenticated remote code execution vector, dramatically increasing its severity and the attack surface for default Pheditor installations.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately update Pheditor to a patched version that correctly validates terminal command arguments or remove the application from production if no patch is available.</li>
<li>Implement robust input validation for all user-supplied command arguments, ensuring that only expected values and structures are permitted.</li>
<li>If Pheditor is deployed, change the default <code>admin</code> password immediately to mitigate unauthorized access to the <code>terminal</code> feature, as documented in GHSA-p4h7-p9rj-2pq2.</li>
<li>Deploy the Sigma rules in this brief to your SIEM and tune for your environment to detect attempts at argument injection via the <code>find</code>, <code>git</code>, <code>php</code>, and <code>tar</code> commands.</li>
<li>Enable <code>process_creation</code> logging for Linux systems to capture command-line arguments, which is essential for activating the rules above.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>argument-injection</category><category>rce</category><category>web-application</category><category>cwe-88</category></item></channel></rss>