Repository navigation
fix(laravel): cut false-positive authorization findings on real apps - #21
Merged
Merged
Conversation
Express (framework #5), Go tenant isolation and Spring Boot guards moved to shipped; #9 closed now that graph-augmenter's pass-level catches report; Gin path join and CLI detection noted under #11. New #12: measure Go tenant isolation on apps the rules were not written against, and a way to mark global-by-design queries. Summary table re-ranked.
Across five open-source Laravel apps scanned with no config, HIGH/CRITICAL findings drop from 951 to 63 (-93%). Sixteen root causes are fixed, each with its own test. The main ones: - Laravel 11+ apps have no Kernel.php, so can:/role:/auth middleware aliases were not recognised - unknown middleware (including RedirectIfAuthenticated) was treated as an authentication step - authorization done outside $this->authorize() (controller helpers, FormRequests, services, scoped queries) was not detected - public paths and resource/route mismatches are now handled explicitly Also adds a GitHub Action (action.yml), a wrong-finding issue template, the scan methodology and a sample report under research/laravel-scan, and refreshes README, CHANGELOG and package metadata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scanning five open-source Laravel apps (BookStack, akaunting, invoiceninja, koel, monica) with no config, HIGH/CRITICAL findings drop from 951 to 63 (-93%).
Root causes fixed
Sixteen root causes, each with its own test. The main ones:
Kernel.php, socan:,role:andauthmiddleware aliases were not recognised (224 false positives on monica alone)RedirectIfAuthenticated, was treated as an authentication step$this->authorize()(controller helpers, FormRequests, services, scoped queries) was not detectedAlso in this PR
action.yml: GitHub Action for running archmind in CI.github/ISSUE_TEMPLATE/wrong-finding.yml: template for reporting false positivesresearch/laravel-scan/: scan methodology and a sample reporttree-sitter-javaadded to the CLI dependencies)Remaining findings
42 of the 63 remaining findings were checked against the source: 30 worth reviewing, 12 still false positives, 0 confirmed vulnerabilities. 21 are not yet checked.
Test plan
🤖 Generated with Claude Code