Новости компьютерной безопасности:

  Latest News

Attackers Can Exploit BadHost to Access Sensitive AI Agent Server Endpoints

С сайта: Vulnerability(cybersecuritynews.com)

Attackers Can Exploit BadHost to Access Sensitive AI Agent Server Endpoints

Author: Abinaya

A newly disclosed critical vulnerability, tracked as CVE-2026-48710 and dubbed “BadHost,” is putting thousands of AI-powered applications at risk by enabling authentication bypass through manipulated HTTP headers.

The flaw affects Starlette versions before 1.0.1, a core framework widely used in FastAPI-based applications powering modern AI infrastructure, including LLM inference servers, agent frameworks, and MCP gateways.

Security researchers warn that attackers can exploit this flaw to gain unauthorized access to protected API endpoints, exposing sensitive AI models, internal tools, and API keys.

The root cause lies in how Starlette constructs request URLs by concatenating the Host header with the request path to build request.url.

BadHost Exposes AI Agent Endpoints
Discovered by X41 D-Sec during an OSTIF-sponsored audit, the issue arises from unsafe handling of the HTTP Host header.

Because the Host header is not properly sanitized, attackers can inject malicious values that alter how the application interprets the request path.

For example, a crafted request such as “GET /protected” with a “Host: example.com/health?x=” header can cause the application to treat the request as if it targets “/health” instead of “/protected.”

When authentication middleware relies on request.url.path to enforce access controls, this discrepancy allows attackers to bypass protections entirely.

This vulnerability particularly affects middleware that uses path-based logic for authentication and authorization checks, allowlist or denylist filtering, rate limiting or billing gates, and CSRF protection mechanisms.

The issue spans multiple layers: ASGI servers, Starlette’s URL handling, and developer-authored middleware, making it difficult to detect through conventional automated analysis.

BadHost poses a significant threat to AI ecosystems because many modern AI services rely on FastAPI and Starlette as their foundation.

Platforms at risk include vLLM and LiteLLM inference and proxy servers, AI agent frameworks and orchestration backends, MCP (Model Context Protocol) servers and gateways, and tools such as Ray Serve, BentoML, and Google ADK-Python when they use custom middleware.

MCP servers are especially vulnerable because they expose unauthenticated OAuth discovery endpoints by design, providing attackers with a predictable, reliable entry point for exploitation.

If successfully exploited, BadHost can enable attackers to access restricted LLM endpoints, extract API keys and credentials, interact with internal agent tooling, and abuse AI compute resources without legitimate authorization.

Organizations are strongly advised to implement mitigations without delay.Upgrading Starlette to version 1.0.1 or later ensures that malformed Host headers are handled safely, closing the primary attack vector.

Developers should avoid using request.url.path for security decisions and instead rely on more robust mechanisms such as FastAPI’s Depends() or Security() for authentication and authorization.

Deploying reverse proxies like Nginx, Caddy, or HAProxy in front of ASGI servers helps validate and normalize Host headers before they reach the application, further reducing exposure.

Where middleware must inspect paths, replacing request.url.path with scope[“path”] provides a safer basis for logic.

Security teams can also scan their environments with specialized tools, such as those from the Nemesis automation platform, to detect vulnerable patterns and exposed endpoints across AI infrastructure.

As AI adoption accelerates, BadHost underscores the growing complexity of securing interconnected frameworks and highlights the need for thorough reviews of middleware logic and strict input validation to prevent similar attack paths in the future.

Follow us on Google News, LinkedIn, and X to Get More Instant Updates.



#AI #Cyber_Security_News #Vulnerability #cyber_security #cyber_security_news

Оригинальная версия на сайте: Attackers Can Exploit BadHost to Access Sensitive AI Agent Server Endpoints
Вернуться к списку новостей К свежим новостям Здесь был google AdSense.
Вместо рекламы товаров началась политическая агитация.
Отключено до получения извинений.

Вернуться к списку новостей Здесь был google AdSense.
Вместо рекламы товаров началась политическая агитация.
Отключено до получения извинений.


Новости проекта CSN:

✉ CSN.net4me.net

Обновление сайта csn.net4me.net

Обновление сайта csn.net4me.net 💻
cyber security news
  • Физически мы переехали на новый сервер. Благодарим наших подписчиков и постоянных читателей за терпение и понимание.
  • Сайт csn.net4me.net полностью адаптирован для работы по шифрованному SSL соединению.
  • Изменен механизм обработки и отображения опасных и критических уязвимостей.

Благодарим что вы с нами.


#CSN_обновление_сайта
https://csn.net4me.net/cyber_security_8301.html

Дополнительный материал

О проекте CSN

Проект CSN.net4me.net родился 16 Марта 2018 года.
Проект находится в самом начале своего развития. Конечно оформление, наполнение будет меняться. Одно останется неизменным - самые свежие новости компьютерной и сетевой безопасности.

О проекте net4me

Проект net4me.net развивался как сборник готовых решений и документации по темам компьютерной безопасности, сетевых решений и СПО (в часности linux). Темпы развития IT отрасли оказались столь быстрыми, что некоторые знания, технологии и информация о них устаревали мгновенно. Тем не менее, некоторый материал net4me.net до сих пор востребован.

Об источниках

Новости берутся CSN из открытых и доступных каждому источников. Авторы проекта стараются подбирать авторитетные и проверенные источники. Но, тем не менее, не несут ответственности за содержимое новостей. В каждой новости указывается источник этой новости, её автор и ссылка на оригинал новости.

Информация

Если вы желаете чтобы новости вашего ресурса были размещены на сайте CSN, то свяжитесь с авторами проекта csn@net4me.net и предложите ссылку на rss или xml ленту новостей вашего ресурса. Любая предложенная информация будет рассмотрена редакцией.