Skip to main content

CVE-2024-9365: Polyaxon CSRF Vulnerability

CVE-2024-9365 is a Cross-Site Request Forgery flaw in Polyaxon v2.4.0 that enables attackers to execute unauthorized actions through victim browsers. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-9365 Overview

CVE-2024-9365 is a Cross-Site Request Forgery (CSRF) vulnerability in polyaxon/polyaxon version 2.4.0. The flaw allows attackers to trigger unauthorized state-changing actions in the context of an authenticated victim's browser. Successful exploitation lets an attacker create projects, model versions, and artifact versions, or modify application settings without the user's consent. The weakness is tracked as CWE-352: Cross-Site Request Forgery and reported through the Huntr Bug Bounty Listing.

Critical Impact

Attackers can perform unauthorized write operations against polyaxon resources using a victim's authenticated session, resulting in data loss and service disruption.

Affected Products

  • polyaxon/polyaxon v2.4.0

Discovery Timeline

  • 2025-03-20 - CVE-2024-9365 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-9365

Vulnerability Analysis

The vulnerability is a server-side failure to validate the origin or authenticity of state-changing HTTP requests. An attacker crafts a malicious page or link that, when visited by an authenticated polyaxon user, forces the browser to issue requests to the polyaxon application. The server processes these requests as legitimate because the user's session cookie is attached automatically. The impact covers resource creation and configuration changes, including project creation, model version registration, artifact version registration, and settings modification.

Root Cause

The root cause is the absence of adequate CSRF protection on state-changing endpoints in polyaxon v2.4.0. The application does not require or validate an unpredictable anti-CSRF token, nor does it enforce strict SameSite cookie behavior or verify the Origin and Referer headers for sensitive operations. This matches CWE-352.

Attack Vector

Exploitation requires user interaction. The attacker hosts a webpage that submits a crafted form or issues a cross-origin request to the polyaxon instance. When an authenticated polyaxon user visits the attacker-controlled page, the browser attaches session cookies to the forged request. The polyaxon backend accepts the request and performs the attacker-chosen action under the victim's identity. No prior privileges on the polyaxon server are needed by the attacker; the attack escalates through the victim's existing session.

No verified proof-of-concept code is published. Technical details are available in the Huntr Bug Bounty Listing.

Detection Methods for CVE-2024-9365

Indicators of Compromise

  • Unexpected creation of projects, model versions, or artifact versions in polyaxon audit logs tied to normal user accounts.
  • HTTP requests to polyaxon state-changing endpoints with Referer or Origin headers pointing to unrelated external domains.
  • Settings changes performed outside of normal administrator workflows or working hours.

Detection Strategies

  • Inspect reverse proxy and application access logs for cross-origin POST, PUT, PATCH, and DELETE requests to polyaxon APIs.
  • Correlate user session activity against known client IPs and user agents to identify requests initiated from unexpected contexts.
  • Alert on sequences of rapid resource creation or configuration changes that deviate from a user's historical baseline.

Monitoring Recommendations

  • Enable verbose audit logging in polyaxon for all resource-mutating operations and ship logs to a centralized store.
  • Monitor browser-based security telemetry for users accessing polyaxon alongside untrusted third-party sites.
  • Review web application firewall (WAF) logs for requests missing or carrying mismatched Origin and Referer headers against polyaxon endpoints.

How to Mitigate CVE-2024-9365

Immediate Actions Required

  • Restrict network exposure of polyaxon v2.4.0 instances to trusted networks or VPNs until a patched version is deployed.
  • Require polyaxon users to log out of active sessions when not actively using the platform.
  • Instruct administrators and users to avoid browsing untrusted sites in the same browser profile as polyaxon.

Patch Information

No vendor patch is referenced in the NVD entry for CVE-2024-9365. Monitor the polyaxon project and the Huntr Bug Bounty Listing for an upstream fix and upgrade when available.

Workarounds

  • Deploy a reverse proxy or WAF rule that rejects requests to polyaxon state-changing endpoints when the Origin or Referer header does not match the application's own domain.
  • Set session cookies with the SameSite=Strict or SameSite=Lax attribute at the proxy layer to limit cross-site cookie transmission.
  • Enforce short session lifetimes and re-authentication for administrative actions to reduce the window of exploitation.
bash
# Example NGINX snippet enforcing Origin/Referer validation for polyaxon write methods
map $request_method $is_write {
    default 0;
    POST    1;
    PUT     1;
    PATCH   1;
    DELETE  1;
}

server {
    listen 443 ssl;
    server_name polyaxon.example.com;

    location / {
        if ($is_write) {
            set $csrf_bad 1;
            if ($http_origin  ~* ^https://polyaxon\.example\.com$) { set $csrf_bad 0; }
            if ($http_referer ~* ^https://polyaxon\.example\.com/) { set $csrf_bad 0; }
            if ($csrf_bad)  { return 403; }
        }
        proxy_pass http://polyaxon_backend;
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.