{
  "id": "CVE-2026-49344",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-49344",
  "published_at": "2026-06-19T19:21:46.127Z",
  "title": "Mercator has a Personal Identifiable Information Leak from Query Executor feature",
  "vendor": "sourcentis",
  "product": "mercator",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-08-12T09:11:35Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 53.6,
    "repo": "hadhub/cve",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Mercator is an open source web application that enables mapping of the information system. Prior to version 2025.05.19, Mercator's Query Engine (`/admin/queries/execute`) accepts a JSON DSL (`from` / `select` / `filters` / `traverse` / `output`), translates it into an Eloquent query, and returns results as JSON. The controller method `QueryController::execute()` does not enforce an authorization gate, unlike `store()` and `massDestroy()` in the same controller which are correctly protected. As a result, any authenticated account — including the read-only Auditor role — can query models beyond its intended scope, including the `User` model. Additionally, the `password` column, although declared `$hidden`, is not excluded from filter predicates, which allows it to be used in `LIKE` conditions. The `schema()` and `schemaModel()` endpoints of the same controller are similarly unguarded. The Query Engine is read-only; integrity and availability are not affected. Version 2025.05.19 patches the issue.",
  "cwe": "CWE-359",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [
    {
      "repo": "hadhub/cve",
      "url": "https://github.com/hadhub/cve",
      "created_at": "2026-08-12T09:11:35Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-06-04T12:02:25Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "sourcentis",
        "product": "mercator",
        "ranges": [
          "\u003c 2025.05.19"
        ],
        "fixed_in": [
          "2025.05.19"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mercator to 2025.05.19 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/sourcentis/mercator/security/advisories/GHSA-q3r8-3h7c-96w3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/admin/config/parameters",
      "query_markers": [
        "tab=cve"
      ],
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2rce.py:105",
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2rce.py:148",
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2scan.py:107",
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2scan.py:126"
      ]
    },
    {
      "method": "GET",
      "path_template": "/admin/users",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/privesc/privesc.js:5"
      ]
    },
    {
      "method": "GET",
      "path_template": "/admin/users/__ADMIN_ID__';/edit",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/account_takeover/account_takeover.js:16"
      ]
    },
    {
      "method": "GET",
      "path_template": "/admin/users/{var}/edit",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/privesc/privesc.js:19"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var})",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/reset-lab.sh:48"
      ]
    },
    {
      "method": "POST",
      "path_template": "/admin/config/parameters",
      "body_markers": [
        "_token=",
        "_method=PUT",
        "active_tab=cve",
        "action=test_provider",
        "provider=gopher://",
        "provider=telnet://"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2rce.py:137",
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2scan.py:115"
      ]
    },
    {
      "method": "POST",
      "path_template": "/admin/entities",
      "body_markers": [
        "_token=",
        "name=XSS-PoC-takeover-",
        "contact_point=\u003cscript src=\"",
        "description=PoC Account Takeover — Mercator",
        "entity_type=PoC",
        "name=XSS-PoC-privesc-",
        "description=PoC Privilege Escalation — Mercator"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/account_takeover/poc_account_takeover.py:185",
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/privesc/poc_privesc.py:115"
      ]
    },
    {
      "method": "POST",
      "path_template": "/admin/queries/execute",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        },
        {
          "name": "X-Csrf-Token",
          "value": "{var}"
        }
      ],
      "body_markers": [
        "from=users",
        "output=list",
        "select[]=",
        "filters[0][field]=id",
        "filters[0][operator]==",
        "filters[0][value]=",
        "filters[1][field]=password",
        "filters[1][operator]=like",
        "filters[1][value]="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-49344-Mercator-JSON-DSL/query_engine_dump.py:81"
      ]
    },
    {
      "method": "POST",
      "path_template": "/admin/users/__ADMIN_ID__';",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/account_takeover/account_takeover.js:57"
      ]
    },
    {
      "method": "POST",
      "path_template": "/admin/users/{var}",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/privesc/privesc.js:49"
      ]
    },
    {
      "method": "POST",
      "path_template": "/login",
      "body_markers": [
        "_token=",
        "login=",
        "password="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "hadhub/cve"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/account_takeover/poc_account_takeover.py:76",
        "hadhub/cve/CVE-2026-27639-Mercator-XSS/privesc/poc_privesc.py:65",
        "hadhub/cve/CVE-2026-49344-Mercator-JSON-DSL/query_engine_dump.py:58",
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2rce.py:82",
        "hadhub/cve/CVE-2026-49345-Mercator-SSRF/ssrf2scan.py:84"
      ]
    }
  ],
  "rules": []
}
