LavaLite / cms

Multilingual PHP CMS built with Laravel and bootstrap
https://lavalite.org
2.85k stars 967 forks source link

Vulnerability Report: sXss #400

Open Fanxiaoyao66 opened 1 year ago

Fanxiaoyao66 commented 1 year ago

I found a sXss vulnerability in the latest version of LavaLite CMS: Users can create a malicious Blog Tittle that triggers malicious code when an administrator accesses the blog admin panel.

Exp:

<iframe src="javascript:alert(1)">test</iframe>
#or
<a href="javascript:alert(1)">test</a>

Poc:

Triggered when an administrator visits the blog admin page:

9ccf78d3a1829a35a6b368f3f5750fb cd4b439e02d2ac5762be05e783e1133 c19a945d22e81bd14b1305eee840a69

Affect:

Without httponly set, an attacker can steal the identity of an administrator or execute other malicious code.