
A stored Cross-Site Scripting (XSS) vulnerability exists in the administration panel of Flatpress CMS 1.3.1. An attacker with admin privileges can inject a malicious JavaScript payload into the system, which is then stored persistently.
When a regular user visits the compromised page (e.g., a blog post), the injected payload executes automatically in the victim's browser.
1.Download the FlatPress CMS from a trustworthy source. (https://github.com/flatpressblog/flatpress)
2.Launch a local PHP server using the command: php -S 127.0.0.1:80
3.Open the following URL in your browser: http://127.0.0.1/admin.php?p=uploader&action=gallerycaptions
4.In Administration area -> uploader->Gallery Captions, in that area you can edit the caption for the images, inject the payload and save , when ever site vister or admin vist the blog post the stored xss will get excute.




1.
2.
https://portswigger.net/web-security/cross-site-scripting
FlatPress 1.4 "Notturno" link