Fetch a user-supplied URL without opening an SSRF hole
Postback URLs, webhook targets and site verification all mean fetching an address someone else chose. This is the guarded version.
Password handling, sessions, CSRF, 2FA, headers and safe outbound requests.
8 entries
Postback URLs, webhook targets and site verification all mean fetching an address someone else chose. This is the guarded version.
Five flags and one call to regenerate. Defaults leave the session cookie readable by scripts and sendable over plain HTTP.
One token per session, compared in constant time, checked on every state-changing POST. Twenty lines and no dependency.
TOTP is HMAC-SHA1 over a time counter, truncated to six digits. About forty lines, and it works with every authenticator app.
One attacker with many addresses and many attackers on one address are different attacks. A single counter catches only one of them.
A status column, one check in the session guard, and a shadow-banned tier that keeps working while earning nothing.
Every admin action and every login, with who, what, from where. Append-only, and never editable from the panel that writes it.
A tight Content-Security-Policy breaks ad embeds and pasted network code. Set it globally, exempt the pages that carry third-party markup.