Security briefs and lessons for PHP, Laravel, and WordPress.

Written by Raghav. When a vulnerability matters, a brief names the affected versions and the fix. Lessons cover the defenses you should already be using. Claims are checked against the official sources they name.

Line drawing of a lock, a key, and a small elephant, framed by code braces
token.php10 Nov 2026 lesson
// Don’t — not a secret
$token = md5(uniqid());

// Do — secure bytes
$token = bin2hex(random_bytes(32));
$hash  = hash('sha256', $token);
22Lessons
6Briefs
18Browser tools
3Articles
Abstract illustration of two database cylinders connected through a gate with a green check mark

Latest lesson · · 3 min read

Laravel exists and unique Rules: Two Advisories and How to Validate Safely

Laravel published two moderate advisories for laravel/framework on 18 Nov 2026: Rule::exists()/Rule::unique() fluent where() values can be read as predicates, and exists can be bypassed by integer or boolean JSON input on MySQL/MariaDB. Upgrade to 12.73.0 or 13.43.0, add string rules before exists/unique, and keep independent ownership checks.

Read the lesson

Latest brief

All briefs

High

3 min read

PHP security this week (16–23 Nov 2026)

Five PHP advisories worth a look: Jane OpenAPI codegen RCE, Silverstripe framework RCE, Paymenter (Laravel/Livewire) unauthenticated method call, Contao admin self-grant, and a SimpleSAMLphp SAML2 signature bypass. None is on CISA KEV.

Recent lessons

All lessons

4 min read

Logging Without Leaking Secrets or PII in PHP and Laravel

Do not log $request->all(), Authorization headers, cookies or passwords. Use Laravel's Log facade with a request id from Log::withContext() or shareContext(), and run context arrays through a redaction helper before writing them. Logs are often copied to Slack, files and log vendors — a secret in a log is a secret out of your app.

4 min read

Keeping Secrets Out of Git: .env, APP_KEY and APP_DEBUG

Laravel's documentation says the .env file should not be committed to source control. Keep APP_KEY and database credentials in the environment, set APP_DEBUG to false in production, and after config:cache only call env() from config files. If you need a file in git, use php artisan env:encrypt and store the decryption key in a password manager.

4 min read

PHP Deserialization Risks: Why unserialize Is Unsafe for User Input

The PHP manual warns: do not pass untrusted input to unserialize(), regardless of allowed_classes. Unserialization can instantiate objects and run code during autoloading. Prefer json_encode() / json_decode() for data you accept from users, and treat allowed_classes as a hardening step for trusted payloads only.

4 min read

WordPress Nonces and Capability Checks: CSRF Is Not Authorization

WordPress nonces help prevent CSRF, but they are not one-time tokens and they are not authorization. Verify a nonce with check_admin_referer() or wp_verify_nonce(), and separately call current_user_can() in the request handler. Official documentation says you should always assume a nonce can be compromised.

Articles

All articles

Authorized security audits, malware cleanup, and PHP, Laravel or WordPress upgrades, only for sites you own or are authorized to manage. Price: Contact for quote.

Get new briefs by email

Short alerts when a PHP or WordPress vulnerability needs action.

Double opt-in via Buttondown; unsubscribe any time. See our privacy policy.