Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Livewire Injection Stopper Laravel Package

darvis/livewire-injection-stopper

View on GitHub
Deep Wiki
Context7

Livewire Injection Stopper Documentation

Welcome to the Livewire Injection Stopper documentation. This package provides comprehensive security for your Laravel + Livewire applications.

Quick Links

What This Package Does

🛡️ User-Agent & IP Blocking

Automatically blocks spam robots and malicious bots based on:

  • User-Agent headers (Python Requests, curl, wget, etc.)
  • IP addresses
  • Configurable whitelist for legitimate API access

🔍 Livewire Security Audit

Scans your Livewire components for property injection vulnerabilities:

  • Detects unprotected public properties
  • Classifies severity (CRITICAL, HIGH, MEDIUM)
  • Provides actionable fix recommendations
  • Integrates with CI/CD pipelines

🔇 Exception Silencing for Bot Noise

Silences bot-driven Livewire exceptions from error trackers:

  • CannotUpdateLockedPropertyException
  • Livewire property assignment TypeError exceptions caused by malicious payloads

Returns a configurable block response while optionally logging locally.

Getting Started

1. Install

composer require darvis/livewire-injection-stopper

2. Publish Config (Optional)

php artisan vendor:publish --tag=livewire-injection-stopper-config

3. Run Security Audit

php artisan livewire-injection-stopper:audit

Documentation Structure

For New Users

  1. Start with Installation
  2. Read Livewire Security to understand the threats
  3. Run the Security Audit
  4. Configure the Middleware

For Developers

  1. Review Testing Guide
  2. Understand Livewire Security patterns
  3. Integrate audit into your CI/CD

For Security Teams

  1. Read Livewire Security for attack vectors
  2. Review Security Audit capabilities
  3. Implement automated scanning

Key Features

Automatic Protection

The middleware is automatically applied to all web routes upon installation. No additional configuration required for basic protection.

Custom Handler Compatibility

If your app has a custom app/Exceptions/Handler.php with manual Sentry reporting in report(), add a guard to skip reporting when the package marks an exception as silenced.

Smart Detection

The security audit uses pattern matching to identify:

  • Authorization flags ($isAdmin, $canEdit)
  • Model instances (User, Cart)
  • Business logic limits ($maxQuantity)
  • Configuration values ($locale)

Zero False Positives

The audit is designed to minimize false positives while catching real vulnerabilities. All detections include:

  • File path and line number
  • Property name and type
  • Severity classification
  • Fix recommendation

Common Use Cases

Protecting Forms from Spam

The middleware automatically blocks automated form submissions from bots.

Preventing Price Manipulation

The security audit detects vulnerable price/quantity properties in e-commerce components.

Securing Admin Panels

Identifies authorization flags that could be manipulated to gain admin access.

API Protection

Whitelist legitimate API endpoints while blocking automated scrapers.

Support

Contributing

Contributions are welcome! Please:

  • Include tests for new features
  • Follow PSR-12 coding standards
  • Update documentation
  • Run full test suite before submitting

License

MIT License - see LICENSE file for details

Credits

Developed by Arvid de Jong

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony