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)
Free Packagev1.27.0

shieldci/laravel v1.27.0

Changed

  • •maintenance-mode-status asks Laravel whether the application is down, so cache-driver and relocated-storage outages are reported, which can fail a default fail_on: high build (#742)
  • •maintenance-mode-status warns at Medium when the maintenance driver cannot answer, such as an unreachable cache store, instead of passing (#742)
  • •maintenance-mode-status no longer runs under --ci, since a CI checkout is never in maintenance mode (#742)
  • •logic-in-routes grades a complex read such as Post::whereIn('id', $ids)->get() Medium instead of High (#752)
  • •logic-in-routes reports restore() as a database write, which can fail a default fail_on: high build (#752)
  • •logic-in-routes analyses closures on routes registered through a chain such as Route::middleware(), prefix() or name(), which can fail a default fail_on: high build (#753)
  • •logic-in-routes grades static job dispatch, Artisan facade calls and notify() as business logic, which can fail a default fail_on: high build (#756)
  • •logic-in-routes counts writes through ?->, relation methods such as sync(), the signed-in user such as auth()->user()->update() and property hops, which can fail a default fail_on: high build (#757)
  • •logic-in-routes counts further Eloquent writes, such as createMany(), forceCreate(), updateOrFail() and saveQuietly(), which can fail a default fail_on: high build (#757)
  • •logic-in-routes counts writes on a models-namespace class named like a utility, such as App\Models\File::create(), which can fail a default fail_on: high build (#757)
  • •logic-in-routes grades a collection push($value) or a first-class callable such as ->delete(...) on a model chain Medium instead of High (#757)
  • •mass-assignment-vulnerabilities reports #[Unguarded] and #[Guarded([])] Critical on a direct Model or Authenticatable subclass with no fillable columns, which can fail a default fail_on: high build (#762)
  • •logic-in-routes matches Eloquent write methods regardless of case, such as ->Delete(), which can fail a default fail_on: high build (#770)
  • •logic-in-routes reports writes in query callbacks, on route-bound models, Auth::guard('api')->user(), Request::user() and model collections, which can fail a default fail_on: high build (#778)
  • •logic-in-routes reports reads on route-bound models and Request::user(), such as fn (Post $post) => $post->comments()->get(), at Low when allow_simple_reads is off (#778)
  • •logic-in-routes adds the newly detected write or business logic to an already-reported closure's message, which changes its fingerprint (#756, #757, #770, #778)
  • •logic-in-routes gives a regraded closure, such as a whereIn() read chain or a closure that is only a DB::table() read, a new message, which changes its fingerprint (#752, #788)
  • •logic-in-routes reads route files under routes/ that the configured paths leave out, which can fail a default fail_on: high build (#794)
  • •logic-in-routes reports a route file that cannot be parsed or read as a Low issue instead of passing (#794)
  • •sql-injection recognises $request?->input() and the other nullsafe $request?-> reads as user input, which can fail a default fail_on: high build (#797)

Fixed

  • •logic-in-routes grades a route closure that is one read chain, such as fn () => Post::paginate(15), as a read instead of High business logic (#752)
  • •logic-in-routes no longer grades a bare app() call that reads application information, such as app()->getLocale(), as business logic (#755)
  • •logic-in-routes no longer grades a models-namespace class named like a facade, such as App\Models\Event::find(1), as a facade call (#757)
  • •mass-assignment-vulnerabilities no longer reports a model that declares neither $fillable nor $guarded, since the base Model already guards every attribute (#762)
  • •mass-assignment-vulnerabilities reads Eloquent attributes such as #[Fillable] through the file's imports, so an aliased import counts and an App\Attributes\Fillable does not (#762)
  • •mass-assignment-vulnerabilities reads only the leading array of #[Fillable], as Laravel does, so #[Fillable(['name'], 'password')] lists only name (#762)
  • •mass-assignment-vulnerabilities no longer reports $guarded = [] beside a non-empty fillable list, or on a model extending Pivot or MorphPivot (#762)
  • •mass-assignment-vulnerabilities honours $visible and #[Visible], so a sensitive field the allow-list leaves out is not reported as unhidden (#762)
  • •mass-assignment-vulnerabilities no longer checks $hidden on a model extending a project base class, unless the model declares its own (#762)
  • •logic-in-routes no longer treats a *Model class declared under app/ without extending Eloquent, such as a view model, as an Eloquent model (#771)
  • •logic-in-routes no longer grades a non-query static call such as DashboardViewModel::make() on an unreadable *Model class as business logic, unless the closure writes (#771)
  • •logic-in-routes grades a read with a whereHas() or when() query callback, or an eager-load constraint, as a read instead of business logic (#778)
  • •logic-in-routes grades local scopes named like collection methods, such as Article::filter(), as reads (#778)
  • •logic-in-routes grades reads on a route-bound model, auth()->guard('api')->user() or Request::user() as reads (#778)
  • •logic-in-routes grades a closure that only assigns plain values or reads and returns a read, directly or through view(), as that read (#778)
  • •logic-in-routes grades cache() and session() helper chains like their facade forms (#778)
  • •logic-in-routes no longer grades whereIn() on an in-memory collection as a database query (#778)
  • •shield:baseline creates a missing baseline directory, and reports a file it cannot write with an error and exit 1 instead of an uncaught ErrorException (#786)
  • •logic-in-routes grades a closure that is only a DB::table() read like the same read on a model, instead of High raw database queries (#788)
  • •phpstan and collection-call-optimization run PHPStan with laravel/pao disabled, so shield:analyze inside an AI coding agent no longer passes with no findings (#792)
  • •phpstan and collection-call-optimization report an error instead of passing when PHPStan prints JSON that is not its report (#792)
  • •phpstan and collection-call-optimization quote an error PHPStan reports outside any file as a 500-character excerpt when longer, instead of the whole text (#793)
  • •phpstan and collection-call-optimization keep shieldci.excluded_paths out of the PHPStan run unless the project config uses excludes_analyse, so an unparseable excluded file no longer stops it (#795)
  • •phpstan and collection-call-optimization leave Blade templates out of the PHPStan run, so a template PHPStan cannot parse no longer stops it (#795)
  • •phpstan no longer reports findings inside Blade templates, which PHPStan reads as plain PHP (#795)
  • •phpstan and collection-call-optimization return Skipped when every analysed path is excluded or holds only Blade templates, instead of analysing those files anyway (#795)
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)
Free Packagev1.26.0

shieldci/laravel v1.26.0

Changed

  • •csrf-protection grades $except patterns matching every request, such as ** and */*, Critical instead of High, which changes their fingerprint (#666)
  • •csrf-protection reads an exclusion on a routes/web.php route variable after withTrashed() or a nullsafe call, which can fail a default fail_on: high build (#668)
  • •csrf-protection reports a route given web then excluded through its variable as excluded, not missing web, which changes its fingerprint (#668)
  • •csrf-protection reports each route on a registrar or router variable at its own line, which changes its fingerprint (#668)
  • •login-throttling no longer credits a throttle added through a route variable after an early return, which can fail a default fail_on: high build (#668)
  • •login-throttling reports a login route on a registrar after apiSingleton(), which can fail a default fail_on: high build (#668)
  • •csrf-protection checks Blade <form> tags spanning several lines and reads @csrf only inside the form, which can fail a default fail_on: high build (#676)
  • •csrf-protection reads an unquoted method=post, a > inside a quoted attribute or echo, and an upper-case </FORM>, which can fail a default fail_on: high build (#676)
  • •csrf-protection ignores @csrf inside a Blade or HTML comment, which can fail a default fail_on: high build (#676)
  • •csrf-protection reports a route file when any load of it leaves out web, which can fail a default fail_on: high build (#677)
  • •csrf-protection reports a route excluding the CSRF class its loading group applies, which can fail a default fail_on: high build (#677)
  • •csrf-protection reports removing, replacing or excluding an app CSRF subclass from the web group, which can fail a default fail_on: high build (#678)
  • •csrf-protection reports a redefined bootstrap/app.php web group with a X::class.':params' entry and no CSRF class, which can fail a default fail_on: high build (#678)
  • •csrf-protection names a credited subclass taken out of the bootstrap/app.php web group by its own name, which changes its fingerprint (#678)
  • •csrf-protection matches framework CSRF class names case-insensitively, which can fail a default fail_on: high build (#678)
  • •authentication-authorization lets a route action array's middleware replace the registrar's and reads its excluded_middleware, which can fail a default fail_on: high build (#680)
  • •authentication-authorization checks bare-method routes in Route::controller() groups, which can fail a default fail_on: high build (#680)
  • •authentication-authorization reads only the first withoutMiddleware() argument on a route or registrar, which can fail a default fail_on: high build (#696)
  • •authentication-authorization grades mutating Route::match() and Route::any() routes, which can fail a default fail_on: high build (#696)
  • •authentication-authorization treats excluding Authenticate::class as removing the auth alias, which can fail a default fail_on: high build (#696)
  • •authentication-authorization checks routes on a registrar a group callback captures with use, which can fail a default fail_on: high build (#696)
  • •database-status probes every read replica of a read/write-split connection, including one a DB::extend() resolver builds, which can fail a default fail_on: high build (#713)
  • •directory-write-permissions grades a missing or broken storage symlink Medium instead of Critical, so a fresh install warns rather than fails (#718)
  • •dev-dependencies-production scans the config.vendor-dir directory when composer lists no removals and installed.json is missing, which can fail a default fail_on: high build (#719)
  • •eloquent-n-plus-one reports a proven relation method call even when a column or accessor shares its name, which can fail a default fail_on: high build (#722)
  • •eloquent-n-plus-one grades a relation guessed from its name, or a chain of relations, Medium instead of High (#729)
  • •eloquent-n-plus-one grades findings Medium in a Console/Commands file that calls chunk(), each(), lazy() or eager-loads (#729)
  • •eloquent-n-plus-one checks views rendered from route closures, inline view() and with() bindings, and nested relation loops, which can fail a default fail_on: high build (#736)
  • •eloquent-n-plus-one reports relation reads and queries on an outer loop's variable inside an inner loop, which can fail a default fail_on: high build (#736)

Fixed

  • •csrf-protection credits middleware added through a route variable, such as $route->middleware('web') in a custom route file (#668)
  • •csrf-protection no longer reports a resource narrowed to read actions with ->only() on its variable (#668)
  • •csrf-protection reads action-array middleware on routes made on Route::getFacadeRoot() (#668)
  • •login-throttling credits throttle added through a route variable after withTrashed() or where*(), or inside a loop body (#668)
  • •login-throttling credits throttle on a registrar after singleton() (#668)
  • •authentication-authorization keeps a registrar variable's middleware when whereNumber(), a nullsafe middleware() or singleton() precedes group() (#668)
  • •csrf-protection no longer reports a commented-out form, an element such as <formation>, or a GET form with data-method, formmethod or :method (#676)
  • •csrf-protection credits an app subclass of the CSRF middleware and reads Class::class.':params' web group entries (#678)
  • •csrf-protection matches exclusions by exact name or subclass, as Laravel does, so a leading-backslash string no longer strips the class (#678)
  • •csrf-protection keeps a web group's known CSRF entries when an appended list cannot be read, and ignores exclusions with parameters such as 'X:strict' (#678)
  • •authentication-authorization counts the Authenticate class, its app subclasses and custom groups holding auth as authentication (#680)
  • •authentication-authorization reads auth from route action arrays, HasMiddleware controllers and controller constructors (#680)
  • •authentication-authorization treats guest:<guard> like guest (#680)
  • •authentication-authorization reads only the first argument of a group's withoutMiddleware(), so a later 'auth' no longer strips auth (#680)
  • •authentication-authorization applies the middleware every load of a route file gives it, such as a then: closure, to its routes (#693)
  • •authentication-authorization applies the prefix of a registrar a then: closure captures, so public_routes entries match (#693)
  • •authentication-authorization applies an auth group's middleware to a route file required inside its callback (#696)
  • •authentication-authorization credits a can group attribute or action key as authorization on Laravel 11+ (#696)
  • •authentication-authorization treats a route's withoutMiddleware(Authenticate::class) like withoutMiddleware('auth') (#696)
  • •authentication-authorization ignores withoutMiddleware text in comments when applying a route file's registration middleware (#696)
  • •config-outside-config no longer reports UUIDs or long snake_case and camelCase identifiers as API keys (#712)
  • •config-outside-config matches excluded_domains against a host with a trailing dot and skips null entries instead of erroring (#712)
  • •config-outside-config lets an excluded_domains entry such as *.example.org cover the bare domain (#712)
  • •directory-write-permissions reads an empty filesystems.links as no links instead of checking public/storage (#718)
  • •dev-dependencies-production reports only dev packages among the packages composer would remove (#719)
  • •eloquent-n-plus-one reads columns declared by #[Fillable], #[Appends], casts(), $attributes and Attribute accessors instead of reporting them as relations (#722)
  • •eloquent-n-plus-one matches accessors case-insensitively, so getFirstNameAttribute() read as $item->firstname is no longer reported (#722)
  • •eloquent-n-plus-one no longer treats a method with a built-in return type, such as permalink(): string, as a relation (#722)
  • •eloquent-n-plus-one knows the activities relation of Spatie's LogsActivity trait, so its models are read in full (#722)
  • •eloquent-n-plus-one reads self:: and static:: queries inside a model as that model, so undeclared names are no longer reported (#729)
  • •eloquent-n-plus-one no longer types static calls on facades and other non-model classes, such as DB::table()->get(), as models (#736)
  • •eloquent-n-plus-one honours break N, so a query followed by break 1 or break 2 out of every loop is no longer reported (#736)
  • •eloquent-n-plus-one no longer reports relation property writes or relations eager-loaded through withWhereHas(), load() or a nested with() closure (#736)
  • •shield:analyze restores the caller's time limit afterwards, so an in-process call no longer leaves its timeout on a queue worker (#739)
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)
Free Packagev1.25.0

shieldci/laravel v1.25.0

Changed

  • •up-to-date-migrations reads migration state from the migrator, so Laravel 9 releases without migrate:status --pending report pending migrations instead of an error (#641)
  • •up-to-date-migrations checks the table named in database.migrations, so a missing renamed table is reported, which can fail a default fail_on: high build (#641)
  • •unused-global-middleware warns instead of passing when the container cannot build TrustProxies (#644)
  • •cache-driver grades failover, storage and session stores instead of reporting them as unsupported, which can fail a default fail_on: high build (#652)
  • •cache-driver reports a null default store in production or staging as caching disabled, which can fail a default fail_on: high build (#652)
  • •cache-driver no longer runs in CI mode, since the CI environment says nothing about the production cache (#652)
  • •cache-prefix-configuration grades database stores Low and Redis, Memcached or DynamoDB stores Medium, so stock Laravel 11+ no longer fails a default fail_on: high build (#654)
  • •cache-prefix-configuration counts the Redis and Memcached client prefix, which changes the fingerprint of Redis findings (#654)
  • •cache-prefix-configuration treats a store's empty prefix as set instead of falling back to cache.prefix, as Laravel does (#654)
  • •cache-prefix-configuration checks the shared stores behind a failover default store instead of skipping it (#654)
  • •collection-call-optimization reports findings the project's PHPStan config narrows or ignores, instead of passing (#655)
  • •collection-call-optimization grades findings Medium instead of High, so they no longer fail a default fail_on: high build (#655)

Fixed

  • •up-to-date-migrations no longer reports a renamed migrations table as missing (#641)
  • •unused-global-middleware no longer flags TrustHosts, which validates the Host header without TrustProxies (#644)
  • •unused-global-middleware reads the proxies a TrustProxies subclass returns from proxies(), instead of telling users to delete it (#644)
  • •shield:analyze --format=json, --report and shield:baseline substitute invalid UTF-8 instead of writing an empty report or baseline or dropping the upload (#646)
  • •phpstan includes the project config under every name PHPStan discovers, such as phpstan.dist.neon, so errors the project ignores are no longer reported (#660)
  • •phpstan and collection-call-optimization leave out findings in files matched by shieldci.excluded_paths, such as app/Legacy/* (#661)
  • •collection-call-optimization leaves resources/views out of its PHPStan run, so a Blade template that does not parse no longer errors the run (#663)
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)
Free Packagev1.24.0

shieldci/laravel v1.24.0

Changed

  • •login-throttling reads login routes written over several lines, with Route::match(), named arguments, an aliased facade or a router variable, which can fail a default fail_on: high build (#615)
  • •csrf-protection reports a route held in a variable whose CSRF middleware a later withoutMiddleware() removes, which can fail a default fail_on: high build (#615)
  • •framework-override analyzes a project checked out under a directory named tests, such as /builds/tests/app, instead of skipping every file, which can fail a default fail_on: high build (#624)
  • •authentication-authorization checks routes on a registrar chain, a router or registrar variable, an arrow-function group, or assigned to a variable, which can fail a default fail_on: high build (#626)
  • •authentication-authorization applies a group's withoutMiddleware('auth') or excluded_middleware to routes at any depth, which can fail a default fail_on: high build (#626)
  • •authentication-authorization exempts a route only when every URL its route file is served at matches public_routes, which can fail a default fail_on: high build (#626)
  • •authentication-authorization reports a FormRequest with no authorize() method at High when an unprotected sensitive action uses it, which can fail a default fail_on: high build (#626)
  • •queue-timeout-configuration treats a missing retry_after as Laravel's 60 seconds instead of 90, which can fail a default fail_on: high build (#628)
  • •queue-timeout-configuration grades each connection against every Horizon supervisor on it, merged with defaults as Horizon does, which can fail a default fail_on: high build (#628)
  • •queue-timeout-configuration reads connection_timeouts by queue connection name, which can fail a default fail_on: high build (#628)
  • •frontend-vulnerable-dependencies warns instead of passing when npm audit or yarn audit did not run or the lock file misses a declared dependency (#631)
  • •frontend-vulnerable-dependencies grades info advisories as Low and advisories with no severity as High, instead of Critical (#631)
  • •queue-timeout-configuration no longer reads a connection's timeout key as the worker timeout, since no queue worker reads it, which can fail a default fail_on: high build (#635)
  • •queue-timeout-configuration fails a Horizon supervisor whose timeout is 0, negative or empty, since its jobs never time out, which can fail a default fail_on: high build (#635)

Fixed

  • •authentication-authorization reads a route file's prefix from more registration forms, such as a then: callback in a variable or a provider in app/Providers/, so listed public_routes match (#613)
  • •authentication-authorization no longer reports Auth::user() without a null check in a method reached only by routes carrying auth (#613)
  • •csrf-protection and authentication-authorization credit middleware set on a registrar derived from a router variable (#615)
  • •login-throttling no longer reads route text inside a string or heredoc as a login route (#615)
  • •login-throttling credits a throttled login route written over several lines to its controller, instead of reporting the controller method as lacking rate limiting (#615)
  • •framework-override no longer reports the Laravel 9 and 10 HTTP and Console Kernels as extending core framework classes (#624)
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)
Free Packagev1.23.0

shieldci/laravel v1.23.0

Changed

  • •login-throttling grades an api file passed to group() through a path variable by the API rules, which can fail a default fail_on: high build (#578)
  • •config-outside-config scans projects checked out under a tests/, config/, vendor/, database/seeders/ or database/factories/ directory instead of skipping them, which can fail a default fail_on: high build (#582)
  • •autoloader-optimization reports an unoptimized Composer autoloader at High, which can fail a default fail_on: high build (#584)
  • •config-outside-config reports loopback and private-IP URLs written with userinfo, such as http://user@127.0.0.1 (#585)
  • •csrf-protection, login-throttling and authentication-authorization apply only the last middleware() call before group(), which can fail a default fail_on: high build (#588)
  • •login-throttling applies only the last middleware() call a Route::middleware() chain makes before a verb such as post(), which can fail a default fail_on: high build (#588)
  • •login-throttling stops crediting a throttle removed by api(remove:) or removeFromGroup(), which can fail a default fail_on: high build (#595)
  • •login-throttling reads only the leading array of ->middleware(['auth'], 'throttle:5,1'), as Laravel does, which can fail a default fail_on: high build (#595)
  • •login-throttling no longer gives the web group's throttle to a route file registered by a group that does not name web, such as Route::prefix('hooks')->group(...), which can fail a default fail_on: high build (#595)
  • •login-throttling drops a parameterless ThrottleRequestsWithRedis when a route excludes ThrottleRequests, as Laravel does, which can fail a default fail_on: high build (#595)
  • •login-throttling applies a route's and its groups' middleware exclusions to the throttle its controller registers, which can fail a default fail_on: high build (#595)
  • •login-throttling grades routes/api.php by the API rules when it is registered through positional withRouting() arguments, withRouting(api: $file) or a provider path method, which can fail a default fail_on: high build (#595)
  • •csrf-protection, login-throttling and authentication-authorization read ->attribute('withoutMiddleware', ...) as a withoutMiddleware() call and report the routes it uncovers, which can fail a default fail_on: high build (#599)
  • •csrf-protection reports Laravel 13 routes excluding the ValidateCsrfToken a Kernel web group lists, which can fail a default fail_on: high build (#602)
  • •csrf-protection reports a route whose action array removes web or the CSRF middleware through excluded_middleware, as it does withoutMiddleware(), which can fail a default fail_on: high build (#609)
  • •csrf-protection reports Route::middleware('web')->post('/x', ['middleware' => 'auth', ...]), since the action array's middleware replaces the registrar's as it does in Laravel, which can fail a default fail_on: high build (#609)
  • •csrf-protection drops the extra keys of a controller callable such as [InvoiceController::class, 'store', 'middleware' => 'web'] and the middleware its registrar set, as Laravel does, which can fail a default fail_on: high build (#609)

Fixed

  • •csrf-protection reads route files passed to group() through a path variable instead of reporting their POST routes (#578)
  • •config-outside-config no longer reports prefixed snake_case identifiers, such as api_response_cache_key, as API keys (#582)
  • •config-outside-config no longer reports public hosts that start with localhost or a private IP, such as localhost.run (#585)
  • •login-throttling compares a class string with a leading backslash as written, so withoutMiddleware('\Illuminate\Routing\Middleware\ThrottleRequests:5,1') no longer removes throttle:5,1 (#595)
  • •csrf-protection, login-throttling and authentication-authorization apply the middleware a route registrar held in a variable carries (#595, #599)
  • •authentication-authorization recognises groups on a router variable, app('router') or a group callback's router parameter, and group in any case, instead of reporting the routes they protect (#599)
  • •csrf-protection no longer reports Laravel 11/12 routes excluding ValidateCsrfToken when the Kernel web group runs VerifyCsrfToken (#602)
  • •csrf-protection no longer reports a route excluding a CSRF class when the Kernel's global $middleware runs CSRF, since withoutMiddleware() only filters route middleware (#602)
  • •csrf-protection no longer reports a route excluding a CSRF class the web group lists with parameters, such as csrf:strict, unless the exclusion names the same Class:params string (#602)
  • •csrf-protection no longer assumes a bootstrap/app.php web-group class without a parent extends VerifyCsrfToken, so excluding the framework VerifyCsrfToken is no longer reported (#602)
  • •csrf-protection reads the middleware key of a route's action array, such as ['middleware' => 'web', 'uses' => ...], instead of reporting no "web" middleware detected (#609)
  • •csrf-protection reads the methods a Route::match() call names through a methods: argument, so a GET-only route is no longer reported (#609)
Free Packagev1.22.0

shieldci/laravel v1.22.0

Changed

  • •csrf-protection reports preventRequestForgery(except: ['*']) on Laravel 13 at Critical instead of passing it, which can fail a default fail_on: high build (#539)
  • •csrf-protection reports web(remove: [PreventRequestForgery::class]) on Laravel 13 at Critical instead of passing it, which can fail a default fail_on: high build (#539)
  • •csrf-protection reports a group('web', ...), replace or removeFromGroup() call that drops the CSRF middleware from the web group, which can fail a default fail_on: high build (#539)
  • •csrf-protection reads except: lists and the $except property through the AST, so a '*' entry in any position is reported at Critical and can fail a default fail_on: high build (#544)
  • •csrf-protection keeps judging the web group after a group('web', ...) call it cannot read, so a later CSRF removal is reported, which can fail a default fail_on: high build (#544)
  • •csrf-protection reports a web-group replacement for the CSRF middleware that it cannot read at Medium, instead of passing it, since the replacement may not extend the CSRF middleware (#544)
  • •csrf-protection no longer lets a route borrow ->middleware('web') from the next statement, or a one-line web group cover the rest of the file, which can fail a default fail_on: high build (#547)
  • •csrf-protection checks write routes registered through Route::any(), Route::match(), Route::resource() or $router->post(), which can fail a default fail_on: high build (#547)
  • •csrf-protection reports a route in a custom route file whose CSRF middleware is removed through withoutMiddleware() or excluded_middleware, which can fail a default fail_on: high build (#547)
  • •csrf-protection reports a route that strips CSRF through withoutMiddleware() or excluded_middleware in routes/web.php or a file web covers, which can fail a default fail_on: high build (#556)
  • •csrf-protection checks apiResource(), singleton() and the other resource forms like resource(), which can fail a default fail_on: high build (#556)
  • •csrf-protection checks routes registered on $this->router, app('router'), a parameter typed Router or a group callback's parameter, which can fail a default fail_on: high build (#556)
  • •csrf-protection reports Route::middleware('web')->middleware('auth')->post(...), since the later middleware() call replaces web as it does in Laravel, which can fail a default fail_on: high build (#556)
  • •csrf-protection moves some routes between its no "web" middleware detected and CSRF-excluded messages, so their baseline entries stop matching (#556)
  • •login-throttling grades a route file registered through Route::group(['middleware' => 'api'], ...) by the API rules, which can fail a default fail_on: high build (#549)
  • •login-throttling grades every file in a group([...]) list registered under api by the API rules, which can fail a default fail_on: high build (#555)
  • •login-throttling grades files an api route file loads through require or group(), and files required inside an api group, by the API rules, which can fail a default fail_on: high build (#560)
  • •login-throttling reports a login route in such a file as API authentication route instead of Login route, so its baseline entry stops matching (#549)
  • •login-throttling reports a login route whose throttle is removed through withoutMiddleware() or excluded_middleware, which can fail a default fail_on: high build (#560)
  • •login-throttling covers a login route only when every prefix and domain its route file is registered under is throttled, which can fail a default fail_on: high build (#560)
  • •login-throttling no longer counts a computed middleware name such as 'throttle'.config(...) on a route file registration, which can fail a default fail_on: high build (#560)
  • •login-throttling counts a group() call as a route group only when it is made on the router, which can fail a default fail_on: high build (#560)
  • •BootstrapRouteParser::getGroupRegisteredRouteFiles() returns each registration's group calls as a calls list instead of a single call, so code reading call breaks; the method is now @internal (#560, #575)
  • •csrf-protection reports a Kernel that names CSRF only in $middlewarePriority or a use import as not registering it, which can fail a default fail_on: high build (#568)
  • •authentication-authorization applies a group's prefix to every file in a ->group([...]) list, so a public_routes pattern written without that prefix may stop matching (#571)
  • •authentication-authorization applies the prefix a withRouting(then:) callback registers a route file under, so public_routes patterns written for that prefix match and ones written for /api/... may stop matching (#571)

Fixed

  • •csrf-protection accepts Laravel 13's PreventRequestForgery and preventRequestForgery(), instead of reporting a Kernel that registers it as missing CSRF (#539)
  • •csrf-protection no longer reports use() or remove(), which edit the global stack rather than the web group (#539)
  • •csrf-protection no longer reports removing or replacing the other Laravel version's CSRF class name, which leaves the web group unchanged (#544)
  • •csrf-protection reads a Kernel comment as commented-out CSRF middleware only when the comment is itself a middleware entry (#544)
  • •csrf-protection ignores commented-out entries in the CSRF middleware's $except property, instead of reading them as live exclusions (#544)
  • •csrf-protection reads custom route files through the AST, so web counts at any position in a route's or group's middleware (#547)
  • •csrf-protection recognises Route::middleware('web')->group(...) in a custom route file, instead of reporting its routes (#547)
  • •csrf-protection keeps a web group open past the closing }); of a nested non-web group, instead of reporting the routes after it (#547)
  • •csrf-protection counts the CSRF middleware applied directly to a route or group, such as ->middleware(VerifyCsrfToken::class), as protection (#547)
  • •csrf-protection covers files a custom route file requires inside a web group, at any depth, instead of reporting their routes (#547)
  • •csrf-protection and login-throttling recognise a route file registered through ->Middleware(...) in any letter case, such as Route::Middleware('web')->group(...) (#547)
  • •csrf-protection treats a route file registered through Route::group(['middleware' => 'web'], ...) as covered, and one registered under api as skipped, instead of reporting their POST routes (#549)
  • •login-throttling keeps the framework's throttle verdict when throttle is re-registered to a class it cannot read, such as a package middleware (#552)
  • •csrf-protection no longer reports a commented-out Kernel CSRF entry when the web group or global stack runs CSRF on an active line (#553)
  • •csrf-protection and login-throttling read every file in a ->group([...]) list, instead of only a single path or closure (#555)
  • •csrf-protection no longer reports excluding VerifyCsrfToken on Laravel 13, where the web group still runs PreventRequestForgery (#556)
  • •csrf-protection no longer reports routes in files that routes/api.php loads, such as a versioned API layout (#556)
  • •csrf-protection and login-throttling resolve require base_path(...) inside a route group, so the required file inherits its registration (#560)
  • •csrf-protection no longer reports routes an api group reaches inside a custom route file, or a file loaded only inside such a group, as missing web middleware (#576)
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)