A issue I opened due to a misunderstanding #1966

Closed
opened 2026-10-05 01:02:33 +02:00 by adam · 3 comments
Owner

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.
image
(2)Click the “visit the gallery” button on the Albums page. And then you'll see the vulnerability triggered.
image
(3)Attack result:
image

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.

### 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. ![image](https://github.com/user-attachments/assets/c50a965c-456b-45fe-98f2-0bb9f4b16498) (2)Click the “visit the gallery” button on the Albums page. And then you'll see the vulnerability triggered. ![image](https://github.com/user-attachments/assets/426b261a-f847-4e97-909b-53a4aded079b) (3)Attack result: ![image](https://github.com/user-attachments/assets/feb97c8c-77ae-4da0-84d1-1a002c6871bb) ### 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 -->
adam closed this issue 2026-10-05 01:02:33 +02:00
Author
Owner
Hello, please read this comment : https://github.com/Piwigo/Piwigo/issues/2207#issuecomment-2308422197 <!-- github-comment-id:2451858050 -->
Author
Owner

Please take #2284 into account.

Please take #2284 into account. <!-- github-comment-id:2700451889 -->
Author
Owner

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.

> 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 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1966