Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-5478— Cross-site Scripting (XSS) in SAML metadata endpoint in lunary-ai/lunary

Quick assessment

Affected
lunary-ai lunary-ai/lunary
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Lunary是lunary开源的一个 LLM 的生产工具包。 Lunary 1.2.7版本存在跨站脚本漏洞,该漏洞源于应用程序未能转义或验证用户提供的orgId参数,允许攻击者注入任意JavaScript代码,从而可能窃取用户cookie或身份验证令牌。

AI Predicted 6.1 Difficulty: Easy EPSS 0.35% · P26
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-5478

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Cross-site Scripting (XSS) in SAML metadata endpoint in lunary-ai/lunary
Source: CVE Program / CVE List V5
Vulnerability Description
A Cross-site Scripting (XSS) vulnerability exists in the SAML metadata endpoint `/auth/saml/${org?.id}/metadata` of lunary-ai/lunary version 1.2.7. The vulnerability arises due to the application's failure to escape or validate the `orgId` parameter supplied by the user before incorporating it into the generated response. Specifically, the endpoint generates XML responses for SAML metadata, where the `orgId` parameter is directly embedded into the XML structure without proper sanitization or validation. This flaw allows an attacker to inject arbitrary JavaScript code into the generated SAML metadata page, leading to potential theft of user cookies or authentication tokens.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Lunary 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Lunary是lunary开源的一个 LLM 的生产工具包。 Lunary 1.2.7版本存在跨站脚本漏洞,该漏洞源于应用程序未能转义或验证用户提供的orgId参数,允许攻击者注入任意JavaScript代码,从而可能窃取用户cookie或身份验证令牌。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
lunary-ai lunary-ai/lunary unspecified ~ latest -

II. Public POCs for CVE-2024-5478

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-5478

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-5478 (1)

Same Patch Batch · lunary-ai · 2024-06-06 · 12 CVEs total

CVE-2024-5126 Improper Access Control in lunary-ai/lunary
CVE-2024-5277 Weak Password Recovery Mechanism in lunary-ai/lunary
CVE-2024-5131 Improper Access Control in lunary-ai/lunary
CVE-2024-5133 Account Takeover via Exposed Recovery Token in lunary-ai/lunary
CVE-2024-5248 Improper Access Control in lunary-ai/lunary
CVE-2024-5127 Improper Access Control in lunary-ai/lunary
CVE-2024-5130 Incorrect Authorization in lunary-ai/lunary
CVE-2024-5328 SSRF Vulnerability in lunary-ai/lunary
CVE-2024-5129 Privilege Escalation Vulnerability in lunary-ai/lunary
CVE-2024-5128 IDOR Vulnerability in lunary-ai/lunary
CVE-2024-3504 Improper Access Control in lunary-ai/lunary

IV. Related Vulnerabilities

V. Comments for CVE-2024-5478

No comments yet


Leave a comment