Description
HestiaCP before 1.9.5 contains a stored cross-site scripting vulnerability that allows authenticated low-privilege users to inject arbitrary HTML by creating a DNS record with a double-quote followed by a script payload in the value field. The application fails to apply htmlspecialchars() encoding to the DNS record value field rendered into the data-sort-value HTML attribute in list_dns_rec.php, allowing the payload to execute in the browser of any user who views the DNS record list, including administrators.
Problem types
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
Any version before 1.9.5
Credits
Djibril Mounkoro
References
github.com/hestiacp/hestiacp/releases/tag/1.9.5 (Release Notes)
github.com/hestiacp/hestiacp/pull/5196 (Pull Request)
github.com/...ommit/07dda18ef0087ea981ff84d4d5757774cf2124b0 (Patch Commit)
www.vulncheck.com/...xss-via-dns-record-management-interface