Skip to content
Katabench
Try free

Topic

Security & Reliability

Defensive engineering for .NET APIs, including injection, denial of service, retries, rate limits, and failure-safe design.

Latest articles

RSS feed →

14 articles

Log injection: how CRLF forges entries in your audit log

Security & Reliability 7 min read

Log injection let one upload filename forge an audit entry. On .NET 10, JSON output kept 1 event while SingleLine text passed the CR on Windows and Linux.

Read article →

X-Forwarded-For spoofing: stop trusting the leftmost IP

Security & Reliability 8 min read

X-Forwarded-For spoofing let one client pass a 10-per-minute limiter 1,000 times. Trusting only the proxy-written hop cut that to 10 accepted.

Read article →

CORS misconfiguration: how reflected origins leak data

Security & Reliability 8 min read

A CORS misconfiguration let a page on another site read a signed-in response in Chrome. Only exact origin matching blocked all three attacker origins.

Read article →

Open redirect vulnerability: why returnUrl checks fail

Security & Reliability 8 min read

Open redirect checks fail on strings browsers rewrite. Of 21,015 fuzz strings that passed a slash check, 326 left the site; IsLocalUrl let none out.

Read article →

Resource-Based Authorization in ASP.NET Core

Security & Reliability 8 min read

Use resource-based authorization in ASP.NET Core to stop IDOR: check ownership, enforce tenant boundaries, and test access before returning private data.

Read article →

Mass assignment in ASP.NET Core: over-posting explained

Security & Reliability 8 min read

Mass assignment in ASP.NET Core: the binder sets any property a request names, so extra JSON flips IsAdmin. Why validation misses it and the allowlist fix.

Read article →

Insecure deserialization in .NET: why BinaryFormatter died

Security & Reliability 8 min read

Insecure deserialization in .NET turns untrusted input into code execution. Why BinaryFormatter was removed, and the Newtonsoft.Json and XmlSerializer traps.

Read article →

SSRF in ASP.NET Core: your server as the attacker's browser

Security & Reliability 8 min read

Server-side request forgery (SSRF) in ASP.NET Core makes your server the attacker's browser. Why naive URL checks fail and how to pin the connected address.

Read article →

Path Traversal Vulnerability in ASP.NET Core

Security & Reliability 8 min read

A path traversal vulnerability lets user input escape a trusted directory. See the unsafe C# patterns, the containment check, and tests that prove it.

Read article →

Idempotency in API design: surviving the retry you didn't send

Security & Reliability 8 min read

Every serious client retries. How the idempotency key pattern and a database unique constraint keep a retried payment from becoming two charges.

Read article →

Rate limiting algorithms: how token buckets forgive bursts

Security & Reliability 8 min read

Rate limiting algorithms compared: why fixed windows leak double the limit, how token buckets forgive bursts, and what a good 429 response returns.

Read article →

ReDoS: the innocent regex that can take down your API

Security & Reliability 7 min read

Catastrophic backtracking turns an email regex into a denial of service: 30 characters, almost a minute of CPU. Why nested quantifiers explode and the .NET fix.

Read article →

The OWASP Top 10 through a C# lens

Security & Reliability 8 min read

A practical tour of the OWASP Top 10 for .NET developers: the ASP.NET Core and EF Core patterns behind broken access control, injection, SSRF, and overposting.

Read article →

SQL injection is still alive, and it's hiding in your C#

Security & Reliability 6 min read

SQL injection is supposedly solved, yet it's still in the OWASP Top 10. The C# patterns that keep it alive in EF Core and ADO.NET, and how to kill them.

Read article →

Get new katas and .NET tips in your inbox

A short note when fresh kata land, plus the C# and performance tricks behind the grading. No spam, unsubscribe anytime.