SShortSingh.
Back to feed

DNS Fail-Open Flaw in SSRF Checks Can Expose Internal Services to Attack

0
·1 views

A common but dangerous flaw in Server-Side Request Forgery (SSRF) defenses occurs when a URL-rendering service defaults to 'allow' if DNS resolution fails, instead of blocking the request. This fail-open behavior creates a security gap because a later DNS retry, resolver change, or DNS rebinding attack can resolve a hostname to a private IP that the original check never evaluated. Secure implementations should fail closed on DNS errors and apply the same SSRF validation to every browser sub-request — including images, iframes, redirects, and stylesheets — not just the initial URL. Developers are advised to reject non-HTTP(S) schemes upfront, block all private and special-use IP ranges across address families, and ensure regression tests specifically assert a block reason when DNS resolution is forced to fail. While fail-closed DNS behavior may cause occasional availability issues during resolver outages, it is considered the correct security trade-off for services that fetch attacker-controlled URLs.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to Build a Delete Confirmation Modal in React with RTK Query and TypeScript

A developer tutorial published on DEV Community demonstrates how to implement a delete-with-confirmation workflow in a React TypeScript application. The guide uses Redux Toolkit Query (RTK Query) to handle API mutations and automatic cache invalidation after a record is deleted. A confirmation modal is triggered when a user clicks the Delete button, storing the selected agency ID in local state before any API call is made. Upon confirmation, the frontend sends the agency ID to a backend DELETE endpoint, which returns a success message displayed via React Toastify. The tutorial covers the full flow from component state management to API service setup using createApi and fetchBaseQuery.

0
ProgrammingDEV Community ·

No Evidence OpenAI Has a Model Named Astra, Public Records Show

A review of OpenAI's publicly available model documentation through August 1, 2026 found no model named Astra, nor any launch timeline or roadmap entry for one. OpenAI's current documented model lineup centers on the GPT-5.6 family, which includes variants named Sol, Terra, and Luna. The name Astra is associated with unrelated projects elsewhere, most notably Google DeepMind's Project Astra, which has no connection to OpenAI. Experts caution that attaching an unverified model name to a well-known company can lend it false credibility. Decisions involving product planning, procurement, or technical integration should rely solely on OpenAI's official published documentation.

0
ProgrammingHacker News ·

Debate: Does the Industrial Revolution Offer a Valid Template for AI-Era Growth?

A new essay published in July 2026 questions whether the Industrial Revolution serves as a reliable precedent for predicting explosive economic growth today. The piece examines the historical parallels often drawn between past industrialization and current technological acceleration. The author appears to challenge assumptions that modern growth trajectories will mirror those of the 18th and 19th centuries. The article was shared on Hacker News, attracting early attention from the technology and economics community.

0
ProgrammingHacker News ·

Medieval Magic Tome Ars Notoria Promised Instant Knowledge Through Prayer

The Ars Notoria is a medieval grimoire that claimed to grant its users instant mastery of academic subjects through prayers, diagrams, and rituals. The text, which dates back to at least the 13th century, was believed to invoke divine or angelic assistance to accelerate learning. It was used by scholars and clerics who sought rapid proficiency in subjects like philosophy, rhetoric, and theology. The work draws a historical parallel to modern promises of AI-driven instant knowledge acquisition. The Public Domain Review essay explores how this ancient text reflects a longstanding human desire to bypass the slow process of traditional learning.

DNS Fail-Open Flaw in SSRF Checks Can Expose Internal Services to Attack · ShortSingh