Skip to main content

Changelog

Real entries from every ShieldCI surface: the SaaS platform, the free open-source package, and the pro package. Filter by product to narrow in.

0
entries
0
major versions
0
in the last 90 days
Pro Packagev1.18.0

shieldci/laravel-pro v1.18.0

Changed

  • •cashier-security reports an unprotected webhook route at its own line, not an enclosing group, comment or Cashier route above, so its High finding rehashes and fails fail_on: high if baselined (#500)
  • •cashier-security reads the webhook secret's env name from config/cashier.php, so an API key there is Critical instead of a High missing secret, failing fail_on: high if baselined (#500)
  • •cashier-security reports an env() default Stripe key in a views/*.php file as a PHP key, so its Critical finding rehashes and fails fail_on: high if baselined (#500, #501)
  • •cashier-security reports a nullsafe ?->charge() at its own line instead of line 1, so its Medium finding rehashes (#500)

Fixed

  • •lazy-collection-opportunity no longer reports chunk() on an in-memory collection, such as collect() or Collection::make(), as a large query chunk (#499)
  • •lazy-collection-opportunity treats where('id', $x)->get() as bounded, like whereKey($x), rather than reporting an unpaginated get() (#499)
  • •cashier-security no longer reports a webhook route to Cashier's own WebhookController, which applies VerifyWebhookSignature itself (#500)
  • •cashier-security no longer reports a webhook route that applies VerifyWebhookSignature through a middleware alias (#500)
  • •cashier-security no longer reports a commented-out webhook route or a webhook URI outside a route registration, such as URL::to() (#500)
  • •cashier-security no longer reports the webhook secret missing when config/cashier.php reads it from another env name or from config() (#500)
  • •cashier-security no longer reports an API key in an env variable the webhook config does not read (#500)
  • •cashier-security no longer reads the line after an empty STRIPE_WEBHOOK_SECRET= in .env as its value (#500)
  • •cashier-security reports an unprotected webhook route once, not twice, when the base path is a symlink (#500)
  • •cashier-security no longer also reports a Stripe key in a views/*.php file as a frontend key, beside its PHP key finding (#500)
  • •cashier-security no longer treats a comment or Cashier Paddle's ignoreRoutes() as opting out of Cashier's webhook route (#500)
  • •cashier-security reports an unprotected webhook route when VerifyWebhookSignature appears only in a comment or unused import, which fails a default fail_on: high build (#500)
  • •cashier-security reports an unhandled billing call when IncompletePayment appears only in a comment or unused import (#500)
  • •cashier-security reports the webhook secret as not configured when it is commented out in config/cashier.php or empty in .env, which fails a default fail_on: high build (#500)
  • •cashier-security reports a missing webhook route when Cashier::ignoreRoutes() is called through an aliased import (#500)
  • •cashier-security reports a nullsafe ?->newSubscription()->create() without IncompletePayment handling (#500)
  • •cashier-security reports a Stripe key given as an env() default, or beside an env() call on the same line, which fails a default fail_on: high build (#501)
  • •cashier-security reports redirectToBillingPortal() given user input as an open redirect, which fails a default fail_on: high build (#501)
Pro Packagev1.17.0

shieldci/laravel-pro v1.17.0

Changed

  • •job-queue-config judges subclasses of a queued application base as jobs, so their Medium finding becomes Low findings for any setting neither class declares (#496)
  • •job-queue-config treats a job implementing an application interface that extends ShouldQueue as queued, so its Medium finding becomes Low findings for any missing setting (#496)
  • •job-queue-config recognises an aliased ShouldQueue import, so its Medium finding becomes Low findings for any missing setting (#496)
  • •job-queue-config reports a job implementing a non-Laravel ShouldQueue at Medium, replacing its Low findings for missing settings (#496)
  • •job-queue-config says block_for = 0 blocks indefinitely and recommends 1-5 seconds, so its finding rehashes (#496)

Fixed

  • •job-queue-config reads $tries, tries(), retryUntil, $timeout and backoff through application base classes, traits, promoted properties and queue attributes (#496)
  • •job-queue-config skips Mailable and Notification subclasses that extend an application base class (#496)
  • •job-queue-config skips classes extending an aliased Mailable or Notification import (#496)
  • •job-queue-config skips job middleware whose handle() takes ($job, $next) (#496)
  • •job-queue-config advice names the base class when an inherited setting is missing (#496)
  • •job-queue-config advice says a job without $tries falls back to the worker's --tries, rather than retrying indefinitely (#496)
  • •job-queue-config checks application classes named Notification, rather than skipping them (#496)
  • •job-queue-config reports a missing $tries when handle() catches only a narrow exception such as \Doctrine\DBAL\Exception (#496)
  • •filament-navigation no longer counts a canViewAny() that returns true or only checks login, so sensitive groups report at Medium and badges at Low (#497)
  • •filament-navigation consults the model policy only when the resource declares no canViewAny(), as Filament does (#497)
  • •filament-navigation reads gate methods in any letter case, so a lower-case canaccess() returning true no longer passes (#497)
  • •filament-navigation judges gate methods and $navigationGroup on the resource itself, not on an anonymous class inside it (#497)
  • •filament-navigation counts hidden() and auth calls with arguments, such as auth('admin')->check(), as panel visibility controls (#497)
  • •filament-navigation reports a panel provider whose only auth mention is a comment, a string or Auth::class, at Low (#497)
  • •FilamentDiscovery reads a panel id past a nullsafe link, such as $panel?->path('admin')->id('admin') (#497)
Pro Packagev1.16.0

shieldci/laravel-pro v1.16.0

Added

  • •pcntl-extension checks the Redis client when Horizon is configured, at Critical, which fails a default fail_on: high build (#482)
  • •ssrf reports the fully qualified Http facade with user input at Critical, which fails a default fail_on: high build (#479)
  • •ssrf reports static XMLReader::open() with user input at High, which fails a default fail_on: high build (#479)
  • •xxe reports new SimpleXMLElement() with LIBXML_NOENT, LIBXML_DTDLOAD or LIBXML_DTDATTR at Critical, which fails a default fail_on: high build (#481)
  • •clickjacking reports wildcard hosts such as https://* and schemes such as https: in frame-ancestors at High, which fails a default fail_on: high build (#483)
  • •data-retention-policy reports a default stack log channel over a single channel at Medium, so a stock Laravel 11+ app gets this finding (#492)
  • •eval-usage reports user callbacks passed inline to array_map(), usort() and similar at Critical, which fails a default fail_on: high build (#493)
  • •eval-usage reports inline user input as a function, method or class name, such as $_GET['f'](), at Critical, which fails a default fail_on: high build (#493)
  • •eval-usage reports Blade::render() of inline user input at Critical, which fails a default fail_on: high build (#493)
  • •extract-usage reports EXTR_IF_EXISTS and EXTR_PREFIX_INVALID at High, which fails a default fail_on: high build (#494)

Changed

  • •vapor-config reports Skipped rather than Passed when vapor.yml cannot be read (#480)
  • •xdebug-enabled reads the effective mode from xdebug_info(), so xdebug.mode=off or XDEBUG_MODE=off reports Low rather than High and rehashes (#486)
  • •xdebug-enabled lets XDEBUG_MODE override xdebug.mode and drops off from mode lists, so the mode a finding names can change and rehash (#486)
  • •cryptographic-weakness reports the first hash comparison it does not skip, so a file's finding can move line and rehash (#489)
  • •vapor-config no longer quotes the parser error for an invalid vapor.yml, so its High finding rehashes (#490)
  • •redis-status, horizon-reliability, dead-routes and event-caching redact credentials and internal IPs in error messages, so the first three's findings can rehash (#490)
  • •telescope-security no longer reports an unscheduled telescope:prune, which data-retention-policy now reports at Medium rather than Low (#492)
  • •eval-usage reports string assert() at Low rather than High, as PHP 8 does not run it, so it rehashes (#493)
  • •extract-usage no longer treats a variable holding a closure as user input, so its extract() is graded by its flag rather than Critical (#493)
  • •extract-usage reports EXTR_OVERWRITE and EXTR_REFS at High rather than Low, which fails a default fail_on: high build and rehashes (#494)
  • •extract-usage reports one-argument parse_str() at High rather than Critical, as PHP 8 cannot run it, so it rehashes (#494)

Fixed

  • •eager-loading no longer reports relations unused when the models reach a collection callback such as each() or filter() (#476)
  • •database-query-optimization no longer reports queries on a variable derived from a Collection as N+1 (#477)
  • •eager-loading no longer reports relations unused when the models reach reduce(), sort(), pipe(), when(), a stored callable, an invokable or a grouping (#478)
  • •ssrf reports ->load() and ->open() only on receivers it proves are DOMDocument or XMLReader (#479)
  • •ssrf no longer reports a numeric cast such as (int) $id after the URL path (#479)
  • •ssrf no longer reports interpolated URLs with a hardcoded base, or app classes named Http (#479)
  • •ssrf reports sprintf() URLs built from tainted variables at Critical, which fails a default fail_on: high build (#479)
  • •vapor-config ignores schedule calls in comments and strings, such as the Laravel 10 skeleton's commented inspire (#480)
  • •vapor-config reports more schedules under scheduler: false, such as Artisan::command() and aliased facades, at High, which fails a default fail_on: high build (#480)
  • •vapor-config accepts separate-vendor, database-proxy and other keys Vapor reads (#480)
  • •xxe no longer reports ->open() on ZipArchive, PharData or Phar receivers (#481)
  • •xxe resolves typed properties, parameters and factories to DOMDocument or XMLReader, so their unsafe loads fail a default fail_on: high build (#481)
  • •xxe credits setParserProperty() only when it turns SUBST_ENTITIES off, so other calls report at High, which fails a default fail_on: high build (#481)
  • •pcntl-extension finds the default broadcaster by driver, so a custom-named Redis broadcaster reports at Critical, which fails a default fail_on: high build (#482)
  • •clickjacking no longer reports a *.example.com frame-ancestors source as a wildcard (#483)
  • •clickjacking reports a wildcard after other sources or in any case at High, which fails a default fail_on: high build (#483)
  • •redis-shared-database merges REDIS_URL over the discrete keys as Laravel does, so connections selecting different databases no longer collide (#484)
  • •redis-shared-database reads the database from a REDIS_URL path such as /1, so collisions report at High, which fails a default fail_on: high build (#484)
  • •redis-shared-database tells Predis unix sockets apart rather than reading them as 127.0.0.1:6379 (#484)
  • •redis-shared-database checks Horizon when it is installed with config/horizon.php, at High, which fails a default fail_on: high build (#484)
  • •route-rate-limiting no longer reports API or webhook routes that a throttle on the api middleware group covers (#485)
  • •route-rate-limiting credits only a throttle on the api group, so throttling another group no longer passes (#485)
  • •cryptographic-weakness no longer reports rand() or str_shuffle() in seeders and factories (#489)
  • •cryptographic-weakness no longer reports random values used as a sleep, length or range() bound (#489)
  • •cryptographic-weakness no longer reports comparing two content hashes, such as md5() change checks, as timing-unsafe (#489)
  • •data-retention-policy reports only Notification, Activity, FailedJob and names ending in Log, so models such as Event, JobPosting or Login pass (#492)
  • •data-retention-policy no longer reports failed-job cleanup on a sync queue without Horizon (#492)
  • •data-retention-policy reads the log channel .env selects, so LOG_CHANNEL=daily over a single default passes (#492)
  • •data-retention-policy reports a .env or environment LOG_CHANNEL naming any channel on the single driver, at Medium, not only single itself (#492)
  • •data-retention-policy reports one issue rather than two when .env and config both select single (#492)
  • •data-retention-policy credits prune commands scheduled by class, such as PruneFailedJobsCommand::class (#492)
  • •data-retention-policy matches scheduled prune commands as whole words, so telescope:prune-batches no longer counts as telescope:prune (#492)
  • •data-retention-policy ignores prune commands that appear only in printed text, such as a $this->info() message (#492)
  • •eval-usage no longer reports closures held in variables as user-chosen functions (#493)
  • •eval-usage reports call_user_func() given an inline user callback at High, which fails a default fail_on: high build (#493)
  • •eval-usage no longer reports call_user_func() with a fixed callback receiving user data (#493)
  • •eval-usage reports fully qualified or aliased Blade::compileString() at Critical, which fails a default fail_on: high build (#493)
  • •eval-usage no longer reports compileString() on other classes named Blade (#493)
  • •eval-usage no longer reports a closure passed to ob_start() or register_shutdown_function() (#493)
  • •command-injection no longer treats a variable holding a closure as user input (#493)
  • •extract-usage reads flags by value, so EXTR_SKIP | EXTR_REFS, EXTR_PREFIX_IF_EXISTS and integer flags pass (#494)
  • •extract-usage reads named arguments, so extract(flags: EXTR_SKIP, array: $d) passes and parse_str(string: ...) is checked (#494)
Pro Packagev1.15.0

shieldci/laravel-pro v1.15.0

Added

  • •rce reports user-controlled callbacks passed to array_map(), usort(), Arr::map() or Collection methods, at Critical (#465)
  • •rce reports dynamic method calls with a user-controlled name at Critical, and static calls on a user-controlled class at High (#465)
  • •regex-dos checks preg_filter(), preg_replace_callback_array() keys, pattern arrays, class constants and Str or str() match, split and replace calls (#472)
  • •regex-dos reports user-controlled patterns in Str::match(), str()->match(), preg_filter() and unpacked arguments, at Critical (#472)

Changed

  • •Requires shieldci/analyzers-core ^2.9.0 (was ^2.8.1), for the literal and env-default detail session-timeout reads from config (#471)
  • •eval-usage and extract-usage report parameter-bag input such as $request->query->get() at Critical rather than High, so these findings rehash (#467)
  • •regex-dos reports patterns matched against parameter-bag input at High rather than Medium, so these findings rehash (#467)
  • •column-name-sql-injection reports parameter-bag, indexed, cast or defaulted input in when() closures with its main message, once per line, so these findings rehash (#467)
  • •rce, eval-usage and object-injection report eval() or unserialize() of cast numeric input as High or Medium rather than Critical, so these findings rehash (#474)
  • •directory-traversal reports include and file paths built from cast numeric input at High rather than Critical, so these findings rehash (#474)
  • •eval-usage and extract-usage report eval() and extract() of nullsafe input such as $request?->input() at Critical rather than High, so these findings rehash (#467)
  • •regex-dos reports a chained call on the line of its method, so the finding can rehash (#472)
  • •session-timeout reports a multi-line or quoted env() lifetime by its value on the key line, rather than as unconfigured, so it rehashes (#469)
  • •session-timeout reads expire_on_close only at the top level, including env() defaults, so a long lifetime can move between Medium and Low (#469)
  • •session-timeout reports same_site none with a cast or named-default secure true at Medium rather than High, so it rehashes (#471)
  • •session-timeout reports same_site none with a secure call such as true_if_https() at High, which fails a default fail_on: high build (#471)

Fixed

  • •rce, command-injection, directory-traversal, object-injection and ssrf treat nullsafe reads such as $request?->input() as user input (#467)
  • •eval-usage, extract-usage and regex-dos report callbacks, parse_str(), extract() with EXTR_SKIP and regex patterns taken from nullsafe input (#467)
  • •rce reports parameter-bag input such as $request->query->get() used as a method or class name or an array_map()-style callback (#467)
  • •column-name-sql-injection reports parameter-bag, nullsafe, indexed, cast or defaulted request input in orderBy() and similar, at Critical (#467)
  • •eval-usage reports call_user_func() with parameter-bag input, at High (#467)
  • •command-injection no longer reports input cast inline to int, float or bool in a string, such as 'sleep ' . (int) $x (#474)
  • •directory-traversal no longer reports downloads of input cast inline to int, float or bool in a path (#474)
  • •directory-traversal no longer reports file paths joining cast numeric input to a safe base such as storage_path() (#474)
  • •rce and eval-usage no longer report assert() or callbacks built from input cast inline to int, float or bool (#474)
  • •object-injection no longer reports phar file operations on input cast inline to int, float or bool in a string (#474)
  • •extract-usage and column-name-sql-injection no longer report input cast inline to int, float or bool in a string (#474)
  • •directory-traversal no longer reports include and file paths built only from constants such as __DIR__ (#466)
  • •directory-traversal no longer reports paths built from locals it traces to safe values, such as storage_path() or sys_get_temp_dir() (#466)
  • •directory-traversal treats basename() and filename-only pathinfo() as clearing user input in file functions (#466)
  • •directory-traversal no longer reports ->store() given a whole request array such as $request->validated() (#468)
  • •directory-traversal reports ->open() only on receivers it proves are archives, so HTTP and socket clients no longer match (#468)
  • •regex-dos reports nested quantifiers in patterns containing >, such as named groups, which were passed (#470)
  • •regex-dos judges each repeated group separately, so an atomic group elsewhere no longer clears the pattern (#470)
  • •regex-dos reports more overlapping alternations, including non-capturing groups and three branches (#470)
  • •regex-dos no longer reports slug patterns such as ^[a-z0-9]+(-[a-z0-9]+)*$ or unrepeated alternation like (http|https) (#470)
  • •regex-dos no longer reports atomic or possessive repeated groups, including in validation rules (#470)
  • •regex-dos checks every regex: and not_regex: in a rule string and ignores prose mentioning regex: (#470)
  • •regex-dos ignores (?#...) comments and \Q...\E quoted text (#472)
  • •regex-dos no longer reports a repeated group nothing can fail after, such as an unanchored trailing (a+)+ (#472)
  • •regex-dos ignores Str classes other than Laravel's (#472)
  • •regex-dos reads rules with any whitespace before the delimiter or the r modifier (#472)
  • •session-timeout evaluates lifetime expressions such as 60 * 24 * 7 and hex or underscore literals such as 10_080, rather than reading their first integer (#469)
  • •session-timeout no longer reports a lifetime set to a constant or call it cannot read as unconfigured (#469)
  • •session-timeout ignores lifetime keys nested in other arrays (#469)
  • •session-timeout skips its lifetime check when config/session.php does not parse (#469)
  • •session-timeout no longer reads calls such as false_unless_debug() as false or null (#471)
  • •health-check counts Laravel Nightwatch as scheduler monitoring (#473)
  • •health-check counts scheduled tasks calling an Event or CallbackEvent macro whose body calls a monitoring hook such as pingOnFailure() (#473)
  • •health-check counts ScheduledTaskFailed listeners registered through discovery, $listen, Event::listen(), subscribers or listed providers (#473)
  • •health-check counts DiagnosingHealth listeners registered by providers outside app/Providers (#473)
  • •health-check counts a listener only where Laravel registers it, so an unrelated array key or undiscovered handler no longer passes (#473)
  • •health-check treats an unreadable scheduler, provider or listener file as unknown rather than missing monitoring (#473)
Pro Packagev1.14.0

shieldci/laravel-pro v1.14.0

Changed

  • •passport-security reports implicit and password grant issues in the provider that enables them, so they rehash when several providers use Passport (#456)
  • •pennant-config orders stale-flag references by path, so a finding can name a different file and rehash (#459)

Fixed

  • •passport-security no longer reports OAuth key files missing from the checkout, which Laravel's .gitignore excludes (#456)
  • •passport-security checks a world-readable private key even when keys also come from env or config, at High (#456)
  • •passport-security finds passport:purge scheduled in bootstrap/app.php or by PurgeCommand::class (#456)
  • •passport-security ignores passport:purge in comments, so a commented-out purge is reported as not scheduled (#456)
  • •passport-security judges token lifetimes in every provider configuring Passport, not only the first (#456)
  • •passport-security judges lifetimes set through a qualified or aliased Passport facade (#458)
  • •passport-security no longer judges lifetimes on a Passport class imported from outside Laravel\Passport (#458)
  • •passport-security judges lifetimes given as CarbonInterval or DateInterval objects (#458)
  • •pennant-config reads multi-line, named-argument, constant, enum and class-based defines, so their flags are no longer reported stale (#459)
  • •pennant-config reads definitions from routes/ and bootstrap/app.php as well as app/ (#459)
  • •pennant-config reports stale flags referenced in routes/ and database/, through aliased imports, array arguments and constants (#459)
  • •pennant-config skips stale-flag checks when a definition cannot be resolved, and says why (#459)
  • •pennant-config counts only Laravel\Pennant\Feature, not other classes named Feature (#459)
  • •pennant-config no longer matches Pennant call text inside strings (#459)
  • •pennant-config checks untyped arrow-function scopes and the named resolver: argument (#459)
  • •pennant-config runs its scope and default checks on every analyzed file, not only app/ (#459)
  • •pennant-config ignores comments in the empty-body and bare return; default checks (#459)
  • •pennant-config ignores commented-out driver lines (#459)
  • •pennant-config reports an env() fallback to the array driver (#459)
  • •pennant-config reports an unreadable config/pennant.php rather than passing (#459)
  • •accessibility scans templates in linear time on PHP 8.1, so large views no longer take seconds (#461)
Pro Packagev1.13.0

shieldci/laravel-pro v1.13.0

Changed

  • •health-check reports unmonitored scheduled tasks against the last file holding one, such as AppServiceProvider.php, so the finding can rehash (#451)

Fixed

  • •health-check grades every health route, so a deep route passes beside a shallow one or the built-in /up (#449)
  • •health-check resolves controllers outside app/Http/Controllers by namespace, so a shallow App\Health\HealthController is now reported (#449)
  • •health-check no longer reports a missing endpoint for withRouting(health:) without a composer.lock, reordered named arguments or an unreadable routes/ directory (#449)
  • •health-check reads routes from RouteServiceProvider and judges Route::view(), short closures and 'Class@method' actions (#449)
  • •health-check treats withRouting(health: null) as disabling the built-in route (#449)
  • •health-check counts only real DiagnosingHealth listeners, not unused imports or ones event discovery cannot reach (#449)
  • •health-check scans withEvents(discover: ...) paths for DiagnosingHealth listeners (#449)
  • •health-check no longer exhausts memory on large route files (#449)
  • •health-check judges scheduler monitoring per task, so one monitored task no longer covers the rest (#451)
  • •health-check finds scheduled tasks in AppServiceProvider, withRouting(commands: ...) files, withSchedule() classes and Artisan::command() chains (#451)
  • •health-check checks scheduler monitoring in apps without a routes/ directory (#451)
  • •health-check no longer counts unrelated ->call() or ->exec() calls as scheduled tasks (#451)
  • •health-check no longer counts a healthCheck mention or schedule:monitor, which Laravel lacks, as scheduler monitoring (#451)
  • •health-check recommends schedule hooks, a ScheduledTaskFailed listener or spatie/laravel-schedule-monitor rather than schedule:monitor (#451)
  • •middleware-misuse reports writes only on Eloquent, DB:: or authenticated-user receivers, and notify() only on those or on-demand notifiables, so $request->session()->save() no longer matches (#450)
  • •middleware-misuse reports nullsafe writes and notifications such as $request->user()?->update() (#450)
  • •middleware-misuse resolves aliased facade imports, so Storage as Disk no longer matches a write (#450)
Pro Packagev1.12.0

shieldci/laravel-pro v1.12.0

Added

  • •command-injection reports user input in Process facade builder chains such as Process::timeout(120)->run(...), at High (#432)
  • •command-injection reports user input wrapped in escapeshellcmd() at High, or Critical when it picks the program a shell function runs (#432)
  • •command-injection reports Symfony Process::fromShellCommandline() with user input, at High (#433)
  • •horizon-reliability reports a plan that stops Horizon starting, such as a non-array plan or minProcesses below 1 under any spelling like min_processes or false, in every environment at High (#437)

Changed

  • •cors-config evaluates the Laravel 11+ framework CORS default when config/cors.php is unpublished, so an API app's Medium missing-file finding becomes a High wildcard origin that fails a default fail_on: high build (#434)
  • •horizon-reliability runs when laravel/horizon is installed and config/horizon.php exists, no longer requiring HorizonServiceProvider, so such installs can now fail a default fail_on: high build (#437)
  • •horizon-reliability reports a clean result as "runtime health not checked" unless its runtime probe ran (#437)
  • •horizon-reliability resolves the plan from the raw app.env rather than shieldci.environment_mapping, so a mapped environment without a plan of its own name reports one missing at High, failing a default fail_on: high build (#437)
  • •horizon-reliability reports a minProcesses defect inherited from horizon.defaults against horizon.defaults, so it rehashes (#437)
  • •horizon-reliability reports a matched plan set to null as not an array rather than missing, so it rehashes (#437)

Fixed

  • •column-name-sql-injection no longer skips a file containing in_array(..., true), even in a comment, so its Critical findings can now fail a default fail_on: high build (#430)
  • •policy-authorization credits can: middleware returned from a Laravel 11+ HasMiddleware controller (#431)
  • •policy-authorization credits Laravel 13 #[Authorize] and #[Middleware('can:...')] attributes (#431)
  • •policy-authorization credits ->can() on write routes and Route::can()->group() (#431)
  • •policy-authorization counts Gate::any(), Gate::none(), authorizeForUser() and $user->cannot() as authorization (#431)
  • •policy-authorization resolves Gate through imports, so an app class named Gate no longer counts as authorization (#431)
  • •policy-authorization says authorizeResource needs a base controller using AuthorizesRequests on Laravel 11+ (#431)
  • •command-injection reports tainted variables concatenated or interpolated into Process commands (#432, #433)
  • •command-injection no longer reports Process input wrapped in escapeshellarg() (#432)
  • •command-injection judges Process::pipe() elements and pool closures by the commands they run (#432)
  • •command-injection tracks tainted variables per function, so a same-named variable in another method no longer matches (#432)
  • •command-injection resolves Process through imports, so other classes named Process are ignored (#432, #433)
  • •command-injection reports user input passed through an aliased Process import, whether Laravel's facade or Symfony's class, at High (#432, #433)
  • •cors-config passes when config/cors.php is unpublished and the app has no cross-origin surface, rather than reporting it missing (#434)
  • •cors-config reads keys a partially published config/cors.php omits from the Laravel 11+ framework default, so supports_credentials alone can report a Critical that fails a default fail_on: high build (#434)
  • •cors-config passes when the app removes HandleCors or skips merging framework config (#434)
  • •cors-config ignores commented-out entries (#434)
  • •database-query-optimization no longer reports in-memory Collection lookups inside loops as N+1 queries (#435)
  • •database-query-optimization no longer suggests exists() for a Collection's count() > 0 (#435)
  • •database-query-optimization skips the index hint on a chain narrowed by whereKey() (#435)
  • •hardcoded-credentials no longer reports cast maps, such as the Laravel 10 skeleton's 'password' => 'hashed' (#436)
  • •hardcoded-credentials no longer reports single validation rules, such as 'password' => 'confirmed' (#436)
  • •hardcoded-credentials no longer reports validation attribute labels, including those in lang/*/validation.php (#436)
  • •horizon-reliability honours wildcard plan keys and horizon.env, as Horizon does (#437)
  • •horizon-reliability normalises supervisor options as Horizon does and skips supervisors with maxProcesses 0 (#437)
  • •health-check finds health routes without a leading slash, under version prefixes, in nested route files and in bootstrap/app.php (#438)
  • •health-check counts a health route whose controller it cannot locate as an endpoint, rather than reporting none (#438)
  • •health-check resolves controller references with a leading backslash (#438)
  • •health-check reads withRouting(health: ...) containing nested calls such as base_path(...) (#438)
  • •health-check finds DiagnosingHealth listeners in subdirectories and ignores mentions in comments (#438)
  • •health-check skips unreadable subdirectories rather than returning an error (#438)
  • •health-check detects Laravel 11+ tasks scheduled through the Schedule facade or withSchedule() (#439)
  • •health-check no longer counts $this->call(), strings or non-scheduler exec() calls in routes/console.php as scheduled tasks (#439)
  • •health-check counts failure hooks such as onFailure() and spatie/laravel-schedule-monitor as scheduler monitoring (#439)
  • •health-check resolves grouped and differently cased Route facade imports (#447)
Pro Packagev1.11.0

shieldci/laravel-pro v1.11.0

Added

  • •accessibility reports icon-only links and buttons without accessible text, at Low (#425)
  • •filament-tenancy reports a canAccessTenant() that grants every tenant, at High (#419)
  • •filament-tenancy reports explicit tenant-scoping opt-outs, at Low (#422)
  • •global-variables reports writes to superglobals other than $_SERVER and $_COOKIE, at Medium (#421)
  • •cashier-paddle reports a webhook secret defined nowhere on Cashier Paddle 2.x, whether or not config/cashier.php is published, at High (#428)

Changed

  • •filament-tenancy reports a tenant user model it cannot find at Low rather than High, and only when none resolves (#419)
  • •accessibility reports Skipped when templates could not be read, rather than Passed (#423)
  • •accessibility compares for and id case-sensitively, as browsers do, so for="Email" no longer labels id="email" (#427)
  • •inertia-security names a renamed middleware in its not-registered finding and labels its share() secrets as shared props, so both rehash (#418)
  • •filament-tenancy reports a blanket trait method aliased to canAccessTenant as granting every tenant rather than missing, so it rehashes (#424)
  • •filament-resource-authorization, filament-navigation and filament-tenancy report base- and trait-owned defects at their declaration, so they rehash; regenerate the baseline once (#426)
  • •cashier-paddle reports a null or false webhook secret in a 2.x config as empty at High rather than hardcoded at Medium, so it fails a default fail_on: high build (#428)

Fixed

  • •inertia-security finds middleware by its Inertia\Middleware base class, not the HandleInertiaRequests filename (#418)
  • •inertia-security no longer reports stock non-Inertia middleware as unregistered (#418)
  • •inertia-security reads secrets through the Config facade, whole config arrays and lazy prop wrappers (#420)
  • •inertia-security resolves aliased Inertia imports and matches method names case-insensitively (#420)
  • •inertia-security no longer reports presence checks such as filled(config('services.stripe.secret')) (#420)
  • •inertia-security treats *_SECRET, *_SECRET_KEY, *_PASSWORD and *_PRIVATE_KEY env names and database, filesystem and mail credentials as secrets (#420)
  • •filament-tenancy resolves the tenant user model through the panel's auth guard, not only app/Models/User.php (#419)
  • •filament-tenancy reads HasTenants and canAccessTenant() from parent classes and traits (#419)
  • •filament-tenancy honours insteadof and as when resolving canAccessTenant() (#424)
  • •filament-tenancy no longer flags resources relying on Filament's own scoping or parent::getEloquentQuery() (#422)
  • •filament-tenancy no longer passes an override because a tenant column appears elsewhere in the file (#422)
  • •filament-tenancy judges each return of a Filament 3 getEloquentQuery() override, so one unscoped path or an inherited unscoped override is reported (#422)
  • •filament-tenancy counts dynamic where calls on a tenant column, such as whereTeamId(), and a panel's ownershipRelationship column as tenant filters (#424)
  • •filament-tenancy finds a resource's $model outside app/ through the composer.json psr-4 map (#424)
  • •filament-tenancy no longer reports removing only SoftDeletingScope in files it cannot parse (#424)
  • •global-variables exempts nested, compound and unset() writes to $_SERVER and $_COOKIE (#421)
  • •global-variables matches its path skips by segment, so ReportKernel.php is no longer skipped (#421)
  • •filament-tenancy, inertia-security, cashier-security and cashier-paddle read PHP in Blade @php and later <?php blocks (#426)
  • •filament-resource-authorization, filament-navigation and filament-tenancy judge resources extending an application base resource (#426)
  • •accessibility no longer ends a tag at a > inside an echo, quoted value or directive argument (#423)
  • •accessibility skips component tags that forward $attributes, such as Breeze's text-input (#423)
  • •accessibility accepts aria-labelledby and title as accessible names (#425, #427)
  • •accessibility leaves tags unjudged when their attributes come from an opaque echo, spread or directive (#425)
  • •accessibility skips hidden, inert and aria-hidden links and buttons, anchor targets, and elements filled by x-text (#425)
  • •accessibility matches labels by quoted, unquoted or echoed for and id (#427)
  • •accessibility reads directive arguments past PHP comments and walks symlinked view directories (#427)
  • •accessibility matches labels in linear time, so large forms no longer take seconds (#427)
  • •cashier-paddle no longer reports non-Paddle webhook routes, such as Stripe's or GitHub's, as unverified (#428)
  • •cashier-paddle judges signature verification per route, so one verified route no longer hides another (#428)
  • •cashier-paddle no longer reports an unpublished config/cashier.php or config() reads as credentials (#428)
  • •cashier-paddle checks .env for an empty webhook secret on 2.x when config/cashier.php is unpublished or has no webhook_secret key (#428)
  • •cashier-paddle treats a quoted-empty, null or comment-only .env webhook secret as empty (#428)
  • •cashier-paddle reports a missing webhook route only when Cashier::ignoreRoutes() is called (#428)
Pro Packagev1.10.0

shieldci/laravel-pro v1.10.0

Added

  • •host-injection reports unanchored trusted-host patterns and unescaped dots between labels, at Medium (#414)
  • •host-injection reports TrustHosts dropped by use(), remove() or replace() at High, unless an app TrustHosts replaces it, so these fail a default fail_on: high build (#414)
  • •host-injection reports an empty at: without subdomains at High, so it fails a default fail_on: high build (#414)
  • •host-injection reports a hosts() that returns an empty array on a conditional path, at Medium (#414)
  • •host-injection checks TrustHosts::at() calls in providers and the hosts() of an app TrustHosts in the middleware stack (#414)

Changed

  • •host-injection raises its no-hosts, broad-pattern, missing, unregistered and always-empty hosts() findings to High, so these now fail a default fail_on: high build (#414)
  • •livewire-security grades a wire:model-bound sensitive property Low rather than High or Medium, so a starter kit's $password no longer fails the build (#411)
  • •livewire-security reports Skipped when it finds no components, rather than Passed (#411)
  • •filament-tenancy, inertia-security, cashier-security and cashier-paddle read paths.analyze and its excludes, rather than fixed directories (#416)
  • •inertia-security reports a nested secret at the line of its inner item, so the finding rehashes; regenerate the baseline once (#416)

Fixed

  • •livewire-security finds components by base class, including Livewire 4 and Volt components under resources/views (#411)
  • •host-injection credits a trusted-hosts allowlist for getHost() and the other getters it validates, rather than flagging every call (#414)
  • •host-injection counts TrustHosts added through append(), prepend() or use(), or the framework's TrustHosts in a legacy Kernel, as registered (#414)
  • •host-injection no longer counts the commented-out TrustHosts line in a Laravel 9 or 10 Kernel as registered (#414)
  • •host-injection detects host reads through Request:: and $this->request (#414)
  • •open-redirection no longer treats $request->user() as redirect input (#415)
  • •open-redirection counts input only inside a redirect target, so flash data, views and log messages no longer match (#415)
  • •open-redirection matches tainted variables on a word boundary, so $urls no longer matches $url (#415)
  • •open-redirection reports Referer redirects from redirectTo(), redirect callbacks, Redirector instances, Location headers and Inertia::location, at Medium (#415)
  • •open-redirection reports a Referer redirected through a variable, such as $back = url()->previous(), at Medium (#415)
  • •filament-tenancy, inertia-security, cashier-security and cashier-paddle report every offending file, not just the first in each directory (#416)
  • •filament-tenancy catches withoutGlobalScopes([TenantScope::class]) (#416)
  • •filament-tenancy no longer flags removing only SoftDeletingScope (#416)
  • •filament-tenancy ignores bypasses in strings and comments, and skips database/, app/Console and routes/console.php (#416)
  • •inertia-security scans Route::inertia() props (#416)
  • •inertia-security no longer overwrites the configured paths (#416)
  • •inertia-security reports a nested secret once, rather than two or three times (#416)
  • •cashier-security no longer counts ->subscribe() as a billing call, which Cashier's Stripe Billable lacks (#416)
  • •cashier-security counts a generic return_url only in files with Stripe or Cashier code (#416)
  • •cashier-paddle skips config/ and database/ when looking for hardcoded price IDs (#416)
Pro Packagev1.9.0

shieldci/laravel-pro v1.9.0

Changed

  • •Requires shieldci/laravel ^1.21 (was ^1.20), for its shared middleware throttle detection (#405)
  • •fortify-security checks the password reset throttle only when Features::resetPasswords() is enabled (#405)
  • •fortify-security now reports a stock Fortify install's unthrottled password reset routes, which Fortify ships without a throttle (#405)
  • •fortify-security reports a stock install's commented-out emailVerification() as disabled, rather than flagging a missing MustVerifyEmail (#405)

Fixed

  • •fortify-security ignores commented-out features, so a commented-out two-factor feature no longer reads as enabled (#405)
  • •fortify-security passes the reset throttle check only when a throttle covers the reset routes, not on any RateLimiter::for() (#405)
  • •fortify-security no longer counts a two-factor confirm or confirmPassword set to false as enabled (#405)
  • •route-rate-limiting and fortify-security count an app alias registered to a ThrottleRequests subclass as a throttle, rather than reporting its routes as unthrottled (#407)
Pro Packagev1.8.0

shieldci/laravel-pro v1.8.0

Added

  • •alerting-config counts Airbrake (airbrake/phpbrake) as an error tracker (#399)

Changed

  • •Requires shieldci/laravel ^1.20 (was ^1.18), for its shared error-tracker detection (#399)
  • •mime-sniffing warns when the guest route answers non-2xx or redirects off host, rather than grading that response (#401)

Fixed

  • •alerting-config no longer credits Horizon for failed jobs, which it only notifies on long waits (#399)
  • •alerting-config follows the default log channel through its stacks when it can resolve them, rather than crediting any alerting channel (#399)
  • •alerting-config resolves env() from .env, then its default, and from the process environment when analyzing the running app (#399)
  • •alerting-config judges monolog channels by handler, so file, stream and no-op handlers, including the stderr and null channels, no longer count as alerting (#399)
  • •alerting-config reads only the comment-stripped failed() body and the same-class methods it calls, not the whole job file (#399)
  • •alerting-config treats an empty NIGHTWATCH_TOKEN as Nightwatch not alerting (#399)
  • •alerting-config reads installed trackers from composer.json when there is no composer.lock (#399)
  • •mime-sniffing skips a localhost or 127.0.0.1 guest URL, rather than passing without a request (#401)
  • •mime-sniffing and web-server-fingerprinting detect loopback by host name, so ::1 is skipped and localhost.example.com is probed (#401)
  • •web-server-fingerprinting warns when its request fails or redirects off host, rather than passing (#401)
  • •web-server-fingerprinting grades the Server header on every redirect hop, not just the final response (#401, #404)
  • •web-server-fingerprinting warns when a clean redirect chain stops at the redirect limit, rather than passing (#404)
Pro Packagev1.7.0

shieldci/laravel-pro v1.7.0

Added

  • •alerting-config counts an installed Laravel Nightwatch as alerting, unless config/nightwatch.php disables it (#396)

Changed

  • •alerting-config credits monitoring packages only from composer.lock production dependencies, not require-dev (#396)
  • •compression-headers verifies TLS certificates, so a self-signed staging certificate now warns (#397)
  • •Requires shieldci/laravel ^1.18 (was ^1.15.1), for the shared origin probe compression-headers now uses (#397)

Fixed

  • •eager-loading follows a model through foreach or a hand-off to a method or resource, rather than reporting its relations unused (#395)
  • •eager-loading credits relations read inside the model's own methods and accessors (#395)
  • •eager-loading reports a once for with(['a', 'a.b']), rather than twice (#395)
  • •eager-loading no longer exhausts memory on $query = $query->where(...), which ended the whole run (#395)
  • •compression-headers warns, naming the URL, when a probe fails, returns non-2xx or the wrong Content-Type, rather than passing (#397)
  • •compression-headers follows same-host redirects and accepts text/javascript as JavaScript (#397)
Pro Packagev1.6.0

shieldci/laravel-pro v1.6.0

Changed

  • •audit-logging finds admin controllers by privileged route middleware such as can: or role:, rather than by directory name (#392)
  • •audit-logging may name a different admin file than v1.5.0, so its dont_report entry can stop matching (#392)
  • •arbitrary-file-upload no longer reports eval(), assert() or call_user_func(), leaving them to rce and eval-usage (#379)
  • •Requires shieldci/analyzers-core ^2.8.1 (was ^2.8), so two imports on one alias no longer error Filament analyzers, middleware-misuse, octane-config or lazy-collection-opportunity (#391)

Fixed

  • •arbitrary-file-upload reads rules only from validation sites, so a message or field named file or image is not a rule (#379, #384)
  • •arbitrary-file-upload limits a FormRequest type hint to its own method rather than the whole file (#379)
  • •arbitrary-file-upload judges each Filament FileUpload separately, so one constrained component no longer masks another (#379)
  • •arbitrary-file-upload reports an original-filename storeAs() or move() line once, not twice (#379)
  • •arbitrary-file-upload accepts Livewire's #[Rule] attribute alongside #[Validate] (#379)
  • •octane-config skips its config checks when config/octane.php does not parse, rather than reporting keys as missing (#382)
  • •octane-config and cdn-configuration name an unparsable config/octane.php or config/app.php in the report rather than losing it (#382)
  • •dead-routes accepts every verb the router declares, so Route::any() is not flagged on Laravel 13.35 (#388)
  • •audit-logging counts a write through a LogsActivity or observed model as logged (#386)
  • •audit-logging reports Skipped, naming the file, when a controller or model it relies on does not parse (#386)
  • •audit-logging reads listeners from every provider, models from app/Models subdirectories, and channels named like audit_trail (#392)
  • •policy-authorization, audit-logging and filament-table-optimization resolve a relative name such as Models\Post as PHP does (#389)
  • •filament-resource-authorization judges a resource whose base class is aliased, rather than skipping it (#389)
  • •filament-tenancy names the first withoutGlobalScopes() file in path order, so baselines match between local and CI (#390)
  • •lazy-collection-opportunity resolves an aliased model before ->pluck(), so an accessor gets no query-pluck advice (#391)
Pro Packagev1.5.0

shieldci/laravel-pro v1.5.0

Added

  • •filament-panel-security, filament-resource-authorization, filament-custom-pages, filament-widget-security and audit-logging report a Filament file whose syntax error stopped it parsing, one analyzer owning each kind (#377)

Changed

  • •A panel provider's declared discoverResources(), discoverPages(), discoverWidgets() and discoverClusters() roots are read, so a file outside app/Filament is judged rather than invisible (#375)
  • •The Filament analyzers report Skipped where discovery finds no files, rather than Passed, apart from filament-panel-security and audit-logging (#375)
  • •filament-tenancy reports Skipped where no panel provider exists, apart from the Passed it keeps for panels configuring no tenancy (#375)
  • •filament-tenancy's withoutGlobalScopes() finding can name a different file, now that a second panel's and a cluster's resources are searched, so regenerate the baseline once (#375)
  • •audit-logging's unlogged-surface finding is reworded and names a file it read rather than a hardcoded path, so it rehashes; regenerate the baseline once (#376)
  • •The Filament analyzers report Skipped where a file in their input could not be read, rather than Passed, so an unparsable file no longer passes (#377)
  • •Requires shieldci/analyzers-core ^2.8 (was ^2.7), for a failed parse that is never cached, so a second run in one process records it again (#377)

Fixed

  • •The Filament analyzers judge a resource, page or widget inside a cluster, which previously passed unopened (#375)
  • •filament-form-validation, filament-navigation, filament-resource-authorization, filament-table-optimization and filament-tenancy judge a second panel's resources, which a hardcoded app/Filament/Resources missed (#375)
  • •filament-widget-security finds a widget nested in a subdirectory below its root, which was skipped entirely (#375)
  • •filament-widget-security recognises a widget extending an aliased base class, so its missing canView() is reported (#375)
  • •filament-resource-authorization, filament-navigation and filament-tenancy judge a resource by what it extends, not a *Resource.php filename (#375)
  • •filament-panel-security, filament-navigation and filament-tenancy find a panel provider at any depth under app/Providers (#375)
  • •filament-panel-security reads app/Models recursively, so a FilamentUser model under app/Models/Auth/ no longer reports that none implements it (#375)
  • •filament-table-optimization reads a custom page's table(), so an N+1 in a page built with InteractsWithTable is reported (#376)
  • •filament-tenancy judges only the resources of panels declaring tenancy, so a non-tenant panel's are no longer flagged for missing scoping (#375)
  • •filament-tenancy keeps the resources of a panel that shares a directory with another, rather than losing them to it (#375)
  • •filament-tenancy no longer puts a panel through the tenancy audit for a ->tenant( in a string or heredoc, the check now reading the AST (#375)
  • •audit-logging counts every Filament resource, page, widget and cluster as an admin surface, so logging in one is credited and its absence reported (#375, #376)
  • •audit-logging requires an activity() call to reach ->log() across all six of its logging checks, so a widget or observer that only reads the log no longer declares a surface audited (#376)
  • •audit-logging credits activity('security') and other named log channels, which the old activity() needle missed and reported as unlogged (#376)
  • •filament-panel-security finds a panel provider whose file will not parse, reading the class out of the source rather than reporting that no panel is configured (#377)
  • •filament-resource-authorization keeps a resource whose file will not parse, rather than dropping it to a support file and out of its input (#377)
  • •audit-logging no longer reports an admin surface as unlogged when a file on it could not be read, rather than counting an unread file as evidence (#376, #377)
Pro Packagev1.4.1

shieldci/laravel-pro v1.4.1

Added

  • •filament-panel-security judges canAccessPanel() on every FilamentUser model, reporting an outright grant, an authentication-only check, or a body that ignores its Panel (#372)

Changed

  • •filament-panel-security drops the per-panel authGuard finding, which flagged Filament's own generated configuration (#372)
  • •Weak Filament gate findings name the defect, so they rehash; regenerate the baseline once (#372)
  • •Requires shieldci/analyzers-core ^2.7 (was ^2.2), for the shared parser's recordRecovery() (#371)

Fixed

  • •filament-panel-security reads ->authMiddleware() and ->path() from the call arguments, so a commented-out call no longer hides an unprotected panel (#372)
  • •filament-panel-security, filament-navigation and filament-tenancy find a panel provider in app/Providers/ too, rather than skipping every check (#372)
  • •The five Filament access-method checks credit a gate that denies through abort_unless() or throw_unless() before granting, rather than reading it as a blanket grant (#372)