Back to Trending
RepositoryPHP
wobqqq

wobqqq/oc-fortify-input-sanitizer-plugin

🧹 Block XSS, SSTI, command injection and path traversal payloads before they reach October CMS

85stars
0forks
0issues
4views

Input Sanitizer

CI Packagist Downloads Marketplace PHP PHPStan License: MIT

Input Sanitizer protects your application by blocking malicious input data in requests.

Fully integrated with the Fortify security system, it adds an extra layer of defense against XSS and injection attacks.

📊 Security Dashboard Widget

Fortify includes a dashboard widget that gives you an overview of your application’s security status.

  • Highlights critical vulnerabilities and misconfigurations
  • Provides quick access to all security checks and tools
  • Helps you identify and fix issues in one place

This widget acts as a central hub, allowing you to monitor and manage your application's security at a glance.

🚀 Features

  • Detects and blocks malicious payloads (the request is refused, its input is never rewritten)
  • Scans the query string, form input, headers and URL segments
  • Protects against XSS and injection attacks
  • Lightweight and efficient filtering
  • Fortify – comprehensive security suite
  • Admin IP Access – restrict admin panel access by IP
  • IP Blocker – manually block specific IP addresses
  • Smart IP Blocker – automatic IP blocking based on request rate
  • CSP – add Content Security Policy headers to prevent XSS

📦 Requirements

  • PHP 8.2 or higher
  • October CMS 3.x or 4.x
  • Fortify

📥 Installation

FromHow
October CMS Marketplaceoctobercms.com/plugin/wobqqq-fortifyinputsanitizer, or Settings → Updates & Plugins → Install plugins in the backend and search for “Fortify Input Sanitizer”
Artisanphp artisan plugin:install Wobqqq.FortifyInputSanitizer
Composercomposer require wobqqq/fortifyinputsanitizer-plugin then php artisan october:migrate

It needs the Fortify core plugin: Composer installs it with the module; when installing from the marketplace, install Fortify first.

💻 Usage

All configuration and management is handled via the October CMS admin panel.

Admin Panel: Navigate to Settings -> Fortify and enable Input Sanitizer.

Console Commands:

  • Disable Input Sanitizer:
php artisan wobqqq.fortify:input-sanitizer:disable

⬆️ Upgrading

  • 1.0.4 — installing the module with Composer installs the Fortify core with it. Nothing changes on an existing site.
  • 1.0.3 — a pattern that does not compile is refused when the settings are saved, and one already saved is skipped instead of failing every page of the site. A pattern that gives up on a long input (backtracking limit) lets the request through instead of breaking it. The settings are validated on every save and applied as soon as they are saved.

⚠️ Good to know

  • The sanitizer is defence in depth: it stops common payloads, not every attack. Keep validating input and escaping output in your own code.
  • The query string and form input are scanned, not JSON request bodies or uploaded files.
  • Rich-text editors send HTML on purpose: add their input names to Excluded inputs, or every save is refused.

🔒 Security

Please report a vulnerability privately, as described in SECURITY.md.

🛠️ Development

The toolchain runs in Docker, the host needs nothing but docker and make. The module is tested together with the Fortify core, which Composer installs from Packagist.

make install        # composer install
make code.fix       # composer normalize, Rector, PHP CS Fixer
make code.check     # composer validate/audit, php -l, YAML lint, PHP CS Fixer, Rector, PHPStan (level max)
make test.coverage  # Pest with coverage (90 % minimum)
make ready          # everything above

Every pull request runs the same checks on GitHub Actions, plus a syntax check on PHP 8.2 and a run against the latest core. Pushing a tag that matches the last version in updates/version.yaml publishes it as a GitHub release and to the October CMS marketplace once CI has passed.

Similar Projects

Discover other similar projects and AI models.

RepositoryPHP
wobqqq/oc-fortify-smart-ip-blocker-plugin

⚡ Rate-limit and auto-ban abusive IPs on October CMS (429 + Retry-After)

87
Nov 9, 2026
RepositoryPHP
wobqqq/oc-fortify-ip-blocker-plugin

🚫 Block IP addresses and subnets from an October CMS site and backend

86
Nov 9, 2026
RepositoryPHP
wobqqq/oc-fortify-csp-plugin

🛡️ Content-Security-Policy header builder for October CMS

85
Nov 9, 2026
RepositoryPHP
wobqqq/oc-fortify-admin-ip-access-plugin

🔐 Restrict the October CMS backend to whitelisted IPs and subnets (IPv4/IPv6)

85
Nov 9, 2026
RepositoryGo
chaitin/SafeLine

SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.

23.5k
Nov 23, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

488.2k
Dec 3, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.6k
Dec 2, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

210.0k
Aug 12, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.8k
Nov 27, 2026