Skip to content

fix(laravel): cut false-positive authorization findings on real apps - #21

Merged
Kidkender merged 2 commits into
mainfrom
fix/laravel-precision
Nov 24, 2026
Merged

Kidkender merged 2 commits into
mainfrom
fix/laravel-precision

Conversation

@Kidkender

Copy link
Copy Markdown
Owner

Summary

Scanning five open-source Laravel apps (BookStack, akaunting, invoiceninja, koel, monica) with no config, HIGH/CRITICAL findings drop from 951 to 63 (-93%).

v0.10.0 This branch
Total findings 1,821 938
HIGH + CRITICAL 951 63
Shown by default 1,821 92 (all 5 apps)
monica / BookStack (HIGH+) 243 / 116 0 / 0

Root causes fixed

Sixteen root causes, each with its own test. The main ones:

  • Laravel 11+ apps have no Kernel.php, so can:, role: and auth middleware aliases were not recognised (224 false positives on monica alone)
  • 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 in this PR

  • action.yml: GitHub Action for running archmind in CI
  • .github/ISSUE_TEMPLATE/wrong-finding.yml: template for reporting false positives
  • research/laravel-scan/: scan methodology and a sample report
  • README, CHANGELOG and package metadata refresh (tree-sitter-java added 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

  • Full test suite: 1,506 passed, 4 skipped (pre-existing), 0 failed across 17 workspaces
  • Before/after scan of the five apps above

🤖 Generated with Claude Code

Kidkender and others added 2 commits November 13, 2026 11:46
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>
@Kidkender
Kidkender merged commit 623ddf7 into main Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant