<?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>Grav-Plugin-Api (&lt; 1.0.0-Beta.15) — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/grav-plugin-api--1.0.0-beta.15/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 03 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/grav-plugin-api--1.0.0-beta.15/feed.xml" rel="self" type="application/rss+xml"/><item><title>Grav API Plugin Privilege Escalation Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2024-01-grav-api-privesc/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-grav-api-privesc/</guid><description>A privilege escalation vulnerability in the Grav API plugin allows authenticated users with basic API access to elevate their privileges to Super Administrator, leading to full system compromise and potential remote code execution.</description><content:encoded><![CDATA[<p>A critical vulnerability exists within the Grav API plugin (<code>composer/getgrav/grav-plugin-api</code>) versions prior to 1.0.0-beta.15. This vulnerability, identified as CVE-2026-42843, allows any authenticated user with the <code>api.access</code> permission to escalate their privileges to Super Administrator. The flaw is due to an insecure direct object reference and logic error in the <code>UsersController::update</code> method, specifically in how user permissions are updated via the API. By sending a crafted PATCH request, a low-privileged user can modify their own access control list (ACL) to include <code>admin.super</code> and <code>api.super</code> permissions. Successful exploitation grants the attacker full control over the Grav CMS instance.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker obtains a low-privileged user account with <code>api.access</code> permission on the Grav CMS.</li>
<li>The attacker authenticates to the Grav API using the obtained credentials to receive a valid JWT access token via a POST request to <code>/api/v1/auth/token</code>.</li>
<li>The attacker crafts a malicious PATCH request to the <code>/api/v1/users/{username}</code> endpoint, targeting their own username.</li>
<li>The PATCH request includes a JSON payload that modifies the user&rsquo;s <code>access</code> field, specifically setting <code>admin.super</code> and <code>api.super</code> to <code>true</code>. For example: <code>{&quot;access&quot;:{&quot;admin&quot;:{&quot;login&quot;:true,&quot;super&quot;:true},&quot;api&quot;:{&quot;access&quot;:true,&quot;super&quot;:true},&quot;site&quot;:{&quot;login&quot;:true}}}</code>.</li>
<li>The attacker sends the crafted PATCH request to the target Grav CMS instance, including the JWT access token in the <code>X-API-Token</code> header.</li>
<li>The vulnerable <code>UsersController::update</code> method in <code>user/plugins/api/classes/Api/Controllers/UsersController.php</code> processes the request without properly validating the user&rsquo;s authority to modify their own permissions.</li>
<li>The user&rsquo;s <code>access</code> field is updated with the malicious payload, granting them Super Administrator privileges.</li>
<li>The attacker logs into the Grav Admin panel using the compromised user credentials and now has full control over the Grav CMS, able to modify content, install plugins, and potentially execute arbitrary code.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This privilege escalation vulnerability (CVE-2026-42843) allows any low-privileged user to gain complete control over a Grav CMS instance. An attacker can modify website content, inject malicious code, install backdoors, and potentially achieve remote code execution (RCE) on the underlying server by modifying Twig templates. This can lead to data breaches, website defacement, and complete compromise of the affected system.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the <code>composer/getgrav/grav-plugin-api</code> package to version 1.0.0-beta.15 or later to patch CVE-2026-42843.</li>
<li>Deploy the Sigma rule &ldquo;Detect Grav API User Permission Escalation Attempt&rdquo; to identify attempted exploitation of this vulnerability by monitoring for PATCH requests to <code>/api/v1/users/</code> with modified access parameters.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>privilege-escalation</category><category>web-application</category><category>grav</category></item></channel></rss>