CVE-2024-8489 in agentscopeinfo

Summary

by MITRE • 03/20/2025

A vulnerability in modelscope/agentscope, specifically in the AgentScope Studio backend server, allows for Cross-Site Request Forgery (CSRF) due to overly permissive CORS headers. This issue affects the latest commit on the main branch (21161fe). The vulnerability permits an attacker to access all backend endpoints, including the `api/file` endpoint, enabling the reading of arbitrary files on the target's local file system through CSRF.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 03/20/2025

The vulnerability identified as CVE-2024-8489 resides within the modelscope/agentscope framework, specifically impacting the AgentScope Studio backend server implementation. This security flaw represents a critical weakness in the application's web security architecture, stemming from improper Cross-Origin Resource Sharing (CORS) configuration that fundamentally undermines the browser's security model. The vulnerability manifests through overly permissive CORS headers that fail to properly validate origin requests, creating an exploitable condition that allows malicious actors to bypass standard security boundaries. The affected component operates within the latest commit of the main branch (21161fe), indicating this issue exists in the current production codebase and represents an active risk to deployed systems.

The technical implementation of this vulnerability exploits the fundamental weakness in CORS policy enforcement by allowing any origin to access the backend endpoints without proper validation. This permissive configuration enables attackers to craft malicious requests that leverage the victim's authenticated session to perform unauthorized operations against the backend server. The vulnerability specifically targets the `api/file` endpoint, which serves as a critical access point for file system operations. Through this CSRF attack vector, an adversary can manipulate the backend to read arbitrary files from the local file system, potentially accessing sensitive data, configuration files, or even system credentials that should remain protected. The flaw operates at the application layer, where the server fails to implement proper anti-CSRF token mechanisms or origin verification checks, making it susceptible to exploitation through social engineering or malicious website embedding.

The operational impact of this vulnerability extends far beyond simple data exposure, as it fundamentally compromises the integrity and confidentiality of the affected system. An attacker who successfully exploits this CSRF vulnerability can gain unauthorized access to the complete file system of the target server, potentially accessing sensitive configuration files, user data, application source code, or even system-level information that could be used for further exploitation. The implications are particularly severe in environments where AgentScope Studio is deployed with elevated privileges or contains sensitive organizational data. This vulnerability enables a complete compromise of the backend server's file system access controls, allowing attackers to escalate their privileges and potentially move laterally within the network infrastructure. The attack surface is extensive since all backend endpoints become accessible through this single vulnerability, creating multiple potential entry points for further exploitation.

Mitigation strategies for CVE-2024-8489 require immediate implementation of proper CORS policy enforcement and CSRF protection mechanisms. Organizations should configure the backend server to implement strict origin validation, ensuring that only trusted domains can access the API endpoints. The implementation should include proper anti-CSRF token validation for all state-changing operations and should enforce the principle of least privilege for CORS headers. Additionally, the application should implement Content Security Policy (CSP) headers to further restrict cross-origin operations and prevent malicious script execution. Security teams should conduct immediate code review to ensure that CORS headers are not set to allow all origins, and that proper session management controls are in place. The vulnerability aligns with CWE-346, which addresses "Improper Verification of Source of a Communication Channel," and maps to ATT&CK technique T1566.001 for initial access through spearphishing attachments, as the CSRF attack often relies on social engineering to deliver malicious payloads that exploit this vulnerability. Organizations should also consider implementing web application firewalls and monitoring for unusual API access patterns that might indicate exploitation attempts.

Responsible

@huntr Ai

Reservation

09/05/2024

Disclosure

03/20/2025

Moderation

accepted

CPE

ready

EPSS

0.00214

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!