Every post on our blog lives in Conduit, a content management system we built and run ourselves. Nobody else runs it, so every bug in it is ours to find. That's the whole goal of red-teaming your own code. You want the list of findings in your hands first.

What did we test it with?

Artex is one of the red team tools we use. It's a harness written in Go that breaks an attack goal into tasks for specialized agents and hands the reasoning to whichever frontier model is plugged in. Attackers use it as well. The FBI has warned that threat actors have used Artex against financial, government, healthcare and defence targets, which is exactly why we want it pointed at our own systems first. The best tool in this market changes almost daily, so Artex is today's choice and we keep evaluating what replaces it. Alongside it we ran the code scanning in interrupt, which ties each finding back to the repository and line that introduced it.

Every install shipped with the same admin password Critical

A first-run migration created an admin account so a fresh install worked out of the box. Its password was a well-known default, stored as an unsalted SHA-256 hash. Default credentials are the ones that never get changed, and unsalted SHA-256 is fast enough to brute-force on a laptop.

Conduit now has no default password at all. Until an operator sets one, nobody can log in. On first run, or whenever no active admin exists, the app reads a one-time ADMIN_BOOTSTRAP_PASSWORD (at least 12 characters) from the environment, creates the admin and tells you to remove the variable. Passwords are stored with bcrypt at cost 12, and older hashes are upgraded silently the next time each user logs in. A migration also deactivates any account still on the old default and ends its sessions, so upgrading an existing install closes the hole instead of carrying it forward.

Nothing stopped password guessing High

With the default credential gone, the next question an attacker asks is whether they can simply guess. The admin login had no rate limit, which made it an easy target for online brute force and credential stuffing.

Failed logins are now throttled on two keys. Ten failures from one IP address in a 15-minute window blocks that address, and five failures against one username blocks that account from anywhere, which stops an attacker from spreading guesses across many addresses. A blocked request gets HTTP 429 with a Retry-After header and never reaches the password check. A few details matter more than they look:

  • Each attempt is recorded before the password is checked, so a burst of parallel requests can't slip through before the counter catches up.
  • Attempts are stored in the database, so the limits survive a restart and apply across every instance.
  • A successful login clears that address's failures, and requests made while blocked don't extend the block, so nobody can lock a real user out by hammering the endpoint.
  • Behind a CDN, the client address comes from the CDN's header only when that's explicitly configured. Otherwise the header is ignored, so it can't be spoofed to get a fresh bucket.

A commenter's name could run code in an admin's browser High

Readers can comment on posts, and each comment shows the display name the commenter chose at registration. The browser built the comment list by dropping that name straight into the page's HTML:

// vulnerable: displayName is attacker-controlled
'<span class="font-medium">' + displayName + '</span>'

A display name such as <img src=x onerror=alert(document.domain)> therefore became code, and it ran for everyone who opened the post. That's stored cross-site scripting. Comment bodies were already sanitized. The name field was the gap.

The admin comment API returned the same unescaped name, and moderators have to open the moderation queue to deal with reported comments. Script running on that screen runs with the administrator's session, which means a name chosen by an anonymous commenter could drive the admin API as that administrator: creating content, users or API keys. That's why we rate it critical in the admin context. We confirmed the execution end to end and we aren't publishing the full chain.

We fixed it in layers. Every user-controlled field is now HTML-escaped before it reaches the page, and avatar URLs must use http or https, so a hostile name renders as harmless text. Display names are also stripped of angle brackets and control characters and capped in length at registration, so markup can't even be stored. We also built the moderation screen properly (it didn't exist yet) on the template engine's automatic escaping, so the tool used to clean up an attack can't become a way in.

What should you test in your own software this week?

None of these bugs needed a novel technique. A shipped password, a missing rate limit and an unescaped name are the kind of seams an adversarial tool finds in an afternoon. Pick the application your customers touch most and check three things: any credential that exists before a human sets it, what happens on the hundredth wrong password, and every field a user can name, upload or describe.