The Configuration page of Piwigo version 14.5.0 has a stored XSS vulnerability, allowing users to modify the page_banner parameter on this page. This enables the execution of arbitrary script code when viewing newly created galleries on the Albums page.
Details
(1) The user inserts a malicious payload (e.g., <script>alert(document.cookie)</script>) into the “Page banner” parameter on the Configuration page and clicks the “Save Settings” button to save this information.
(2)Click the “visit the gallery” button on the Albums page. And then you'll see the vulnerability triggered.
(3)Attack result:
This vulnerability allows attackers to execute arbitrary script code, potentially exposing users' sensitive data and compromising the normal functioning of the software.
### Summary
The Configuration page of Piwigo version 14.5.0 has a stored XSS vulnerability, allowing users to modify the page_banner parameter on this page. This enables the execution of arbitrary script code when viewing newly created galleries on the Albums page.
### Details
(1) The user inserts a malicious payload (e.g., <script>alert(document.cookie)</script>) into the “Page banner” parameter on the Configuration page and clicks the “Save Settings” button to save this information.

(2)Click the “visit the gallery” button on the Albums page. And then you'll see the vulnerability triggered.

(3)Attack result:

### PoC
(1)First URL: http://localhost/piwigo/admin.php?page=configuration
(2)Request Method: Post
(3)Payload: <script>alert(document.cookie)</script>
(4)Second URL: http://localhost/piwigo/admin.php?page=albums
### Impact
This vulnerability allows attackers to execute arbitrary script code, potentially exposing users' sensitive data and compromising the normal functioning of the software.
<!-- github-sync-id:2628571613 -->
I sincerely apologize for my previous misjudgment—this issue should not have been considered a security vulnerability. I was new to cybersecurity back in 2024, so my understanding of security matters was still developing, and I appreciate your understanding.
> Please take [#2284](https://github.com/Piwigo/Piwigo/issues/2284) into account.
I sincerely apologize for my previous misjudgment—this issue should not have been considered a security vulnerability. I was new to cybersecurity back in 2024, so my understanding of security matters was still developing, and I appreciate your understanding.
<!-- github-comment-id:4305397063 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
The Configuration page of Piwigo version 14.5.0 has a stored XSS vulnerability, allowing users to modify the page_banner parameter on this page. This enables the execution of arbitrary script code when viewing newly created galleries on the Albums page.
Details
(1) The user inserts a malicious payload (e.g., <script>alert(document.cookie)</script>) into the “Page banner” parameter on the Configuration page and clicks the “Save Settings” button to save this information.



(2)Click the “visit the gallery” button on the Albums page. And then you'll see the vulnerability triggered.
(3)Attack result:
PoC
(1)First URL: http://localhost/piwigo/admin.php?page=configuration
(2)Request Method: Post
(3)Payload: <script>alert(document.cookie)</script>
(4)Second URL: http://localhost/piwigo/admin.php?page=albums
Impact
This vulnerability allows attackers to execute arbitrary script code, potentially exposing users' sensitive data and compromising the normal functioning of the software.
Hello, please read this comment : https://github.com/Piwigo/Piwigo/issues/2207#issuecomment-2308422197
Please take #2284 into account.
I sincerely apologize for my previous misjudgment—this issue should not have been considered a security vulnerability. I was new to cybersecurity back in 2024, so my understanding of security matters was still developing, and I appreciate your understanding.