惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
爱范儿
爱范儿
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
量子位
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
The Cloudflare Blog
小众软件
小众软件
云风的 BLOG
云风的 BLOG
WordPress大学
WordPress大学
P
Proofpoint News Feed
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog

Help Net Security

ChatGPT advanced account security adds passkeys and hardware keys Week in review: High-severity LPE vulnerability in the Linux kernel, cPanel 0-day exploited for months Automating Pentest Delivery: A Step-by-Step Guide - PlexTrac Open-source privacy proxy masks PII before prompts reach external AI services Shadow AI risks deepen as 31% of users get no employer training Identity is the control plane for distributed infrastructure AI traffic is getting bigger, louder, and less predictable New infosec products of the month: April 2026 cPanel zero-day exploited for months before patch release (CVE-2026-41940) Cisco releases open-source toolkit for verifying AI model lineage Met Police face criticism for using AI to spy on their own officers Nine-year-old Linux kernel flaw enables reliable local privilege escalation (CVE-2026-31431) Hacker with a special interest in breaching sports institutions ends behind bars - Help Net Security IP Fabric MCP server adds governance and control to enterprise AIOps workflows - Help Net Security Aqua Compass MCP server enables real-time investigation and containment of runtime threats - Help Net Security Google brings instant email verification to Android, no OTP needed - Help Net Security If cyber espionage via HDMI worries you, NCSC built a device to stop it - Help Net Security Apple fixes iPhone bug that let FBI retrieve deleted Signal messages(CVE-2026-28950) - Help Net Security GopherWhisper APT group hides command and control traffic in Slack and Discord - Help Net Security OpenAI tackles a bad habit people have when interacting with AI - Help Net Security A year in, Zoom's CISO reflects on balancing security and business - Help Net Security Scenario: Open-source framework for automated AI app red-teaming - Help Net Security GDPR works, but only where someone enforces it - Help Net Security Ransomware, fraud, and lawsuits drive cyber insurance claims to new peaks - Help Net Security Google’s Workspace Intelligence promises privacy while running on your data - Help Net Security Cyberattack on French government agency triggers phishing alert - Help Net Security Claude Mythos finds 271 Firefox flaws, Mozilla believes zero-days are numbered - Help Net Security Prove Identity Platform connects verification, authentication, and fraud prevention - Help Net Security New Mirai variants target routers and DVRs in parallel campaigns - Help Net Security Acronis GenAI Protection gives MSPs control over AI usage and data risks - Help Net Security
Microsoft AntiSSRF open-source library helps block server...
Anamarija Pogorelec · 2026-06-17 · via Help Net Security

AntiSSRF is an open-source code library from Microsoft that validates URLs and network connections to reduce server-side request forgery (SSRF) risks in web applications. It supports .NET and Node.js applications and is distributed under the MIT license. The library works as a drop-in component, giving developers a way to check untrusted input before their applications make outbound requests.

Microsoft AntiSSRF

What the library targets

Server-side request forgery is a web security vulnerability in which an attacker manipulates a server-side application into making network requests to an arbitrary endpoint. An attacker who succeeds can direct the target server to connect to internal networks or send sensitive data to an untrusted endpoint on the internet. Listed consequences include exposure of internal services, leakage of sensitive data, service disruption, and remote code execution.

A common path to these vulnerabilities involves customer-supplied strings that form or build a URL. When those strings go unvalidated, they can enable SSRF, which can result in token theft. The project treats all incoming HTTP requests as untrusted, including user-provided URLs and identifiers, data from external APIs and webhooks, configuration values that users can influence, and requests from a service’s own backend components. Data that does not appear to be a URL, such as a workspace name concatenated into one, falls under the same requirement for validation.

How it works

AntiSSRF validates URLs and network connections automatically and refuses input it deems unsafe. It supplies an agent that prevents HTTP requests from reaching internal or sensitive IP addresses.

Configuration centers on an AntiSSRFPolicy object. Its properties let developers define allowed and denied addresses, deny all unspecified IPs, permit or block plain-text HTTP, and set required and denied headers. A URIValidator component provides domain checks, including methods that confirm whether a URI sits within an Azure Key Vault domain or an Azure Storage domain.

The .NET library serves web clients that use HttpClient objects. The Node.js library handles requests that use Node.js HTTP and HTTPS agents. Documentation includes Node.js samples for Axios, follow-redirects, and node-fetch.

Microsoft AntiSSRF is available for free on GitHub.

Must read:

Subscribe to the Help Net Security ad-free monthly newsletter to stay informed on the essential open-source cybersecurity tools. Subscribe here!