Urgent.News

What's breaking now, across thousands of outlets.

Tech

4 issues against password reset flow. Here's what I found.

Password reset looks like a 20-line feature. Until it has an email leak, a half-finished transaction, and more than one valid token at a time. I was building a task manager API for a skill assessment. Auth was supposed to be the boring part. Then I started reviewing my own password reset like someone trying to break it. I ended up with four issues and three PRs, and not one of them was a typo.…

Four issues surfaced during a review of the password reset flow in a task manager API. The first issue discovered was that the forgot-password feature inadvertently revealed the accounts of others to unauthorized parties. The second problem was that the login process itself could be compromised through timing attacks. The third issue arose from the reset password procedure taking three separate database steps, leaving the system vulnerable to race conditions.

Lastly, multiple valid tokens could exist simultaneously, rendering all links ineffective when any token was clicked.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Homelab security on 512 MB: warden scores my logs and asks before it bans anything

I wanted one place that tells me what is going on in my homelab: who is poking at it from outside, which boxes have known-exploited CVEs, what needs patching, and whether anything new turned up on the…

  • "Warden" monitors homelab security on minimal resources
  • Combines scanners and adds logic without agents
  • Uses Discord for user approval before taking action

More from Saturday 10 October →