Security

Security that is enforced, not advertised.

A hidden button is not a permission. brokenPIXEL checks access in the controller, gates scripts behind consent, scans files on a schedule and signs every release package. The controls are in the product, not in a plugin you have to trust.

Controller-level permissions Two-factor authentication Scheduled scans Signed releases

Access control

Permissions enforced in the controller

Permissions are stored per module with an access level — view, edit, add, delete, and higher for developer and admin. Menus and buttons are hidden by permission, but a direct URL to a screen you cannot use is refused as well. Hiding a link and refusing a request are not the same thing, and only one of them is security.

  • Central check — admin controllers extend a base controller whose constructor enforces access before any action runs.
  • Per-module levels — a user can hold different levels on different modules.
  • Direct URLs refused — typing the address does not bypass the menu.
  • Front-end opt-out — public controllers do their own login checks rather than inheriting the admin rule.
access levels
// Stored per module in ci_permissions.
const VIEW      = 1;
const EDIT      = 2;
const ADD       = 3;
const DELETE    = 4;
const DEVELOPER = 5;
const ADMIN     = 6;

// Checked in the controller, before the action.
if (! $this->permissions->can('releases', DELETE)) {
    show_error('Forbidden', 403);
}
Authentication

Two-factor on the actions that matter

TOTP two-factor authentication is built in, with recovery codes and per-account enforcement. It can be required for administrators and left optional for editors, which is how it actually gets adopted instead of being switched off on day two.

  • TOTP — works with any authenticator app, no SMS gateway required.
  • Recovery codes — generated once, stored hashed, usable once each.
  • Per-account enforcement — required for admins, optional for editors.
  • No external service — the secret stays in your database.

Authenticator apps

Any TOTP app works. No vendor, no per-user fee.

Recovery codes

A lost phone is an inconvenience, not a lockout.

Per-account policy

Require it where it matters, leave it optional elsewhere.

Secrets stay local

The secret is in your database, not a hosted identity provider.

Detection

Scanning in three tiers

A scan that only looks at file names finds nothing. brokenPIXEL scans at three levels, from a cheap integrity check to a full malware signature pass, and each tier can run on its own schedule.

TIER 1

File integrity

Every product-owned file is hashed and compared against the release manifest. A changed core file is reported, because a core file should never change.

Catches: a modified or injected file.

TIER 2

Pattern scan

Uploads and theme files are scanned for the patterns a shell actually uses — eval chains, encoded payloads, superglobal writes — rather than for a filename.

Catches: a web shell dropped into an upload folder.

TIER 3

Malware signatures

A signature pass over the whole install, with the result recorded so a clean scan is evidence rather than an assumption.

Catches: known malware families and obfuscated payloads.

Findings raise a notification. A scan result is not a log line you have to go looking for — it appears in the admin, and the notice clears itself when the finding is resolved.

Uploads

Uploads that cannot execute

The most common way a PHP CMS is compromised is an uploaded file that turns out to be executable. brokenPIXEL removes the PHP handlers from the uploads directory and serves its contents as inert downloads, so a stray script is a file rather than a vulnerability.

  • Handlers removed — .php, .phtml, .phar and friends are unset for the uploads tree.
  • Served as text — the same extensions are re-typed as plain text.
  • Nosniff — X-Content-Type-Options is set so a browser cannot be talked into executing one.
  • Re-encoded images — an image is decoded and re-encoded on upload, which drops an appended payload.
uploads/.htaccess
# Serve uploads as inert downloads.
<IfModule mod_mime.c>
    RemoveHandler .php .phtml .phar .cgi .pl .py
    RemoveType    .php .phtml .phar .cgi .pl .py
    AddType text/plain .php .phtml .phar .cgi .pl .py
</IfModule>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    Header always set Content-Disposition "inline"
</IfModule>
Supply chain

Updates you can verify

A release is a signed package with a manifest listing every file and its SHA-256 hash. The updater checks the archive against the manifest before it writes anything, so a truncated or tampered download is refused rather than half-applied.

  • Per-file hashes — the manifest is the contract, not a suggestion.
  • Verified before write — a mismatch stops the update.
  • Backup first — the previous version is backed up before anything is replaced.
  • Schema ledger — every migration is recorded, so an install knows exactly where it is.
manifest.json
{
  "version": "1.13.3",
  "schema": 2026120201,
  "sha256": "2ebb160c…a2dd76",
  "file_count": 1584,
  "files": {
    "application/config/product_version.php": "c9115f9c…",
    "system/core/CodeIgniter.php": "7a7e2830…"
  }
}

Reporting a vulnerability

If you believe you have found a security issue, please report it privately rather than in a public issue tracker. Include the version, the steps to reproduce and what you expected to happen. Security reports are triaged ahead of everything else, and a confirmed issue is fixed in the next release with credit if you want it.

Contact the team

Security is not a paid add-on.

The permission model, two-factor authentication, the scanning tiers and the signed updater are all in the download. There is no security tier to upgrade to.

No license key No seat count No feature gate No upsell
Download brokenPIXEL