<?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>Laravel — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/laravel/</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>Thu, 09 Apr 2026 17:16:31 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/laravel/feed.xml" rel="self" type="application/rss+xml"/><item><title>Laravel Passport Authentication Bypass Vulnerability (CVE-2026-39976)</title><link>https://feed.craftedsignal.io/briefs/2026-04-laravel-auth-bypass/</link><pubDate>Thu, 09 Apr 2026 17:16:31 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-laravel-auth-bypass/</guid><description>Laravel Passport versions 13.0.0 before 13.7.1 contain an authentication bypass vulnerability (CVE-2026-39976) where machine-to-machine tokens can authenticate as a real user due to improper validation of the JWT sub claim.</description><content:encoded><![CDATA[<p>Laravel Passport, an OAuth2 server implementation for Laravel, is vulnerable to an authentication bypass (CVE-2026-39976) in versions 13.0.0 up to, but not including, 13.7.1. The vulnerability stems from the <code>league/oauth2-server</code> library, where the JWT <code>sub</code> claim is set to the client identifier for <code>client_credentials</code> tokens, as there is no associated user. Subsequently, the token guard uses this client identifier to retrieve user information via <code>retrieveById()</code> without proper validation, potentially resolving and authenticating an unrelated, real user. This means any machine-to-machine token can inadvertently authenticate as an actual user within the Laravel application. The vulnerability is resolved in Laravel Passport version 13.7.1. This allows attackers to perform actions with the privileges of the authenticated user.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker obtains a valid <code>client_credentials</code> token issued by Laravel Passport (versions 13.0.0 - 13.7.0). This could be a token intended for machine-to-machine communication.</li>
<li>The attacker sends a request to a protected endpoint of the Laravel application, including the <code>client_credentials</code> token in the <code>Authorization</code> header.</li>
<li>The Laravel Passport token guard extracts the JWT <code>sub</code> claim from the token. In vulnerable versions, this <code>sub</code> claim contains the client identifier.</li>
<li>The token guard calls <code>retrieveById()</code> using the client identifier from the <code>sub</code> claim as the user ID.</li>
<li>Due to the lack of validation, <code>retrieveById()</code> queries the user database, potentially finding a user whose ID matches the client identifier.</li>
<li>If a user with the matching ID is found, the application authenticates the request as that user, granting the attacker their privileges.</li>
<li>The attacker can then access resources and perform actions as the authenticated user.</li>
<li>The attacker exploits the user&rsquo;s privileges to compromise data or perform unauthorized actions within the application.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-39976 allows attackers to bypass authentication and gain unauthorized access to user accounts in Laravel applications using affected versions of Laravel Passport. This can lead to data breaches, privilege escalation, and other malicious activities, depending on the privileges of the compromised user accounts. The severity of the impact depends on the application&rsquo;s functionality and the sensitivity of the data it handles. Potentially all applications using Laravel Passport for authentication are vulnerable.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Laravel Passport to version 13.7.1 or later to patch CVE-2026-39976.</li>
<li>Implement additional validation within the application&rsquo;s authentication logic to verify that the user ID extracted from the JWT <code>sub</code> claim corresponds to a valid user, especially when using <code>client_credentials</code> tokens.</li>
<li>Monitor application logs for unexpected authentication events or API requests originating from machine-to-machine tokens that are being authenticated as users. The <code>webserver</code> log source can be used for this monitoring.</li>
<li>Deploy the Sigma rule provided to detect requests to protected endpoints with <code>client_credentials</code> tokens that are incorrectly authenticated as users.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>cve-2026-39976</category><category>laravel</category><category>oauth2</category><category>authentication bypass</category></item><item><title>Sharp CMS Path Traversal Vulnerability (CVE-2026-33686)</title><link>https://feed.craftedsignal.io/briefs/2024-05-sharp-path-traversal/</link><pubDate>Thu, 26 Mar 2026 22:16:31 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-05-sharp-path-traversal/</guid><description>A path traversal vulnerability exists in Sharp CMS versions prior to 9.20.0 due to improper sanitization of file extensions, potentially allowing attackers to bypass security restrictions and access sensitive files.</description><content:encoded><![CDATA[<p>Sharp CMS, a content management framework built for Laravel, is vulnerable to a path traversal attack. This vulnerability affects versions prior to 9.20.0 and stems from the <code>FileUtil</code> class not properly sanitizing file extensions. The flaw allows attackers to manipulate file paths by injecting path separators, potentially leading to unauthorized file access or manipulation within the storage layer. The vulnerability resides in the <code>FileUtil::explodeExtension()</code> function within…</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>path-traversal</category><category>cms</category><category>laravel</category><category>web-application</category></item><item><title>Sharp Laravel Admin Panel Unrestricted File Upload Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-06-sharp-file-upload-bypass/</link><pubDate>Wed, 25 Mar 2026 20:03:11 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-sharp-file-upload-bypass/</guid><description>The code16/sharp Laravel admin panel package contains a vulnerability in its file upload endpoint that allows authenticated users to bypass all file type restrictions by manipulating the validation_rule parameter, potentially leading to Remote Code Execution (RCE) if the storage disk is configured to be publicly accessible.</description><content:encoded><![CDATA[<p>The <code>code16/sharp</code> Laravel admin panel package, specifically versions before 9.20.0, is vulnerable to unrestricted file upload. An authenticated user can manipulate the <code>validation_rule</code> parameter in the <code>/api/form/upload</code> endpoint to bypass file type restrictions. This vulnerability stems from insufficient server-side validation of the client-supplied <code>validation_rule</code>, which is directly passed to the Laravel validator. Successfully exploiting this vulnerability allows an attacker to upload arbitrary files, including PHP webshells, which can lead to remote code execution (RCE) if the storage disk is publicly accessible. The vulnerability was reported by zaurgsynv and has been patched in pull request #714. Defenders should ensure their Sharp instances are updated to version 9.20.0 or later, and restrict disk access.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated user logs into the Sharp Laravel admin panel.</li>
<li>The user navigates to a section of the application that utilizes the file upload functionality.</li>
<li>The user intercepts the HTTP request sent to the <code>/api/form/upload</code> endpoint.</li>
<li>The user modifies the request body, specifically the <code>validation_rule</code> parameter, setting it to <code>validation_rule[]=file</code>.</li>
<li>The modified request is sent to the server, bypassing MIME type and file extension checks.</li>
<li>The server processes the upload request, saving the arbitrary file (e.g., a PHP webshell) to the designated storage disk.</li>
<li>If the storage disk is publicly accessible, the attacker can access the uploaded file via a web browser.</li>
<li>The attacker executes the uploaded PHP webshell, achieving remote code execution (RCE) on the server.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows attackers to upload arbitrary files, including PHP webshells, to the affected server. This can lead to Remote Code Execution (RCE) if the server&rsquo;s storage disk is misconfigured to be publicly accessible. While default configurations prevent direct execution of uploaded PHP files, compromised servers can be leveraged for lateral movement, data exfiltration, or further malicious activities. This vulnerability impacts all installations of <code>code16/sharp</code> prior to version 9.20.0.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>code16/sharp</code> to version 9.20.0 or later to remediate CVE-2026-33687.</li>
<li>Ensure that the storage disk used for Sharp uploads is strictly private, as described in the Laravel filesystem documentation (<a href="https://laravel.com/docs/13.x/filesystem)">https://laravel.com/docs/13.x/filesystem)</a>.</li>
<li>Deploy the Sigma rule &ldquo;Detect Sharp File Upload Bypass Attempt&rdquo; to identify attempts to exploit this vulnerability based on the <code>validation_rule</code> parameter.</li>
<li>Monitor web server logs for suspicious file uploads to the <code>/api/form/upload</code> endpoint, correlating with user activity and file extensions.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>laravel</category><category>file-upload</category><category>rce</category><category>code16/sharp</category></item></channel></rss>