shoc-backend/SeaHaven.Services
Alexandre Brandizzi c841e130be fix(auth): harden password reset codes against guessing and email enumeration
Forgot Password answers every address the same way and emails a code only
to an active account. Codes are stored as salted SHA-256 hashes, expire 15
minutes after issue, are replaced by a newer request, and are checked only
against the email they were issued to. Five failed checks delete the code;
attempts are reserved with one conditional UPDATE so concurrent guesses
cannot exceed the budget. VerificationCode requires the email, and email and
code are accepted in the JSON body so they stay out of URLs.

The three anonymous endpoints are rate limited to 10 requests per 15
minutes per client IP. Forwarded headers are trusted only through loopback
and private hops, since the API sits behind the EB load balancer and nginx.
The migration adds hash, salt, expiry and attempt columns and deletes the
old plaintext rows.
2026-09-25 12:21:29 -03:00
..
Configuration feat(permissions): protect configured account owner (SH-329) 2026-09-16 21:40:22 -03:00
Constants feat(team-members): support pending member creation (SH-325) 2026-09-16 21:41:55 -03:00
DependencyInjection feat(permissions): protect configured account owner (SH-329) 2026-09-16 21:40:22 -03:00
DTOs Merge pull request #183 from Sea-Haven-Industries/feat/ab/wo-ids-filter 2026-09-25 14:55:26 +00:00
Exceptions fix: map concurrent uplift inserts to conflict 2026-09-23 01:26:15 -03:00
Helpers fix(auth): harden password reset codes against guessing and email enumeration 2026-09-25 12:21:29 -03:00
Implementation fix(auth): harden password reset codes against guessing and email enumeration 2026-09-25 12:21:29 -03:00
Interfaces fix(auth): harden password reset codes against guessing and email enumeration 2026-09-25 12:21:29 -03:00
Validation feat(locations): manage ordered site contacts 2026-09-15 19:03:54 -03:00
SeaHaven.Services.csproj refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00