| 제목 | dcatadmin Dcat-Admin v2.2.2-beta SQL Injection |
|---|
| 설명 | Dcat Admin v2.2.2-beta (and earlier versions) contains an authenticated SQL injection vulnerability in the code generator endpoint POST /admin/helpers/scaffold/table. The tb (table name) parameter is concatenated directly into an information_schema.columns query in ScaffoldController.php (lines 227–237) without any filtering or parameter binding. Although the endpoint catches SQL errors and always returns HTTP 200, an attacker can exploit it via time-based blind injection using SLEEP() payloads — a stable ~10x timing difference (~3.4s vs ~0.35s) between TRUE and FALSE conditions confirms the injection. By automating the boolean oracle, an attacker can extract arbitrary database data character by character; during testing, the database version, DB user, current database, and the administrator's username and bcrypt password hash were successfully dumped. A valid backend administrator session and matching CSRF token are required for exploitation. The fix is to use parameter binding (AND TABLE_NAME = ?) and validate table names against a whitelist. |
|---|
| 원천 | ⚠️ https://github.com/blue060/cve/issues/1 |
|---|
| 사용자 | zhixia (UID 98925) |
|---|
| 제출 | 2026. 10. 30. AM 10:53 (28 날 ago) |
|---|
| 모더레이션 | 2026. 11. 27. PM 07:06 (28 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 444963 [dcatadmin Dcat-Admin 2.2.2-beta ScaffoldController.php getDatabaseColumns tb SQL 주입] |
|---|
| 포인트들 | 20 |
|---|