The parameter description of image is not sanitized after querying from database, so attackers can create a stored XSS attack.
POC
In the description of the image, create a malicious code:
2. Clicking on the image:
# Summary
The parameter description of image is not sanitized after querying from database, so attackers can create a stored XSS attack.
# POC
1. In the description of the image, create a malicious code:
<img src="https://i.imgur.com/VeiR2vL.png">
2. Clicking on the image:
<img src="https://i.imgur.com/fZajgUH.png">
<!-- github-sync-id:438189083 -->
Yes, a Piwigo administrator can add HTML/JS in the description of a photo. That is not a bug, that is a design choice.
As long as only administrators can "inject" JS, it's fine. The problem would be that an attacker could become administrator, but that's not what you're showing here.
Hi @duypv1997
Yes, a Piwigo administrator can add HTML/JS in the description of a photo. That is not a bug, that is a design choice.
As long as only administrators can "inject" JS, it's fine. The problem would be that an attacker could become administrator, but that's not what you're showing here.
<!-- github-comment-id:519905021 -->
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 parameter description of image is not sanitized after querying from database, so attackers can create a stored XSS attack.
POC
Hi @duypv1997
Yes, a Piwigo administrator can add HTML/JS in the description of a photo. That is not a bug, that is a design choice.
As long as only administrators can "inject" JS, it's fine. The problem would be that an attacker could become administrator, but that's not what you're showing here.