ช่องโหว่ Arbitrary File Upload — CVE-2026-97401 (CVSS 7.4)
📋 สรุปช่องโหว่
ช่องโหว่ อนุญาตให้ผู้โจมตีอัพโหลดไฟล์อันตรายขึ้นเซิร์ฟเวอร์ได้โดยไม่ผ่านการตรวจสอบประเภทไฟล์อย่างเหมาะสม มี CVSS Score 7.4 ระดับ "สูง"
ช่องโหว่ File Upload เป็นอันตรายมากเพราะหากผู้โจมตีสามารถอัพโหลดไฟล์ PHP shell ได้ก็เท่ากับได้รับ RCE บนเซิร์ฟเวอร์โดยสมบูรณ์
💥 ผลกระทบที่อาจเกิดขึ้น
ผลกระทบจากช่องโหว่ File Upload:
• Web Shell: อัพโหลด PHP shell เพื่อรันคำสั่งบนเซิร์ฟเวอร์
• Malware Distribution: ใช้เซิร์ฟเวอร์เป็นแหล่งแจกจ่าย malware
• Server Takeover: ควบคุมเซิร์ฟเวอร์สมบูรณ์ผ่าน web shell
• Ransomware: ติดตั้งและรัน ransomware บนระบบ
• ขโมยข้อมูล: เข้าถึงไฟล์ทั้งหมดบนเซิร์ฟเวอร์รวมถึง credentials
🖥️ ซอฟต์แวร์และระบบที่ได้รับผลกระทบ
ตรวจสอบจาก https://nvd.nist.gov/vuln/detail/CVE-2026-97401
🔧 แนวทางการแก้ไขและป้องกัน
- ขั้นตอนแก้ไข:
- 1. อัพเดตทันที: ติดตั้ง patch เวอร์ชันใหม่ที่แก้ไขแล้ว
- 2. ตรวจสอบไฟล์ที่อัพโหลด: ค้นหาไฟล์ .php .phtml .php5 ในโฟลเดอร์ uploads
- 3. ลบ Web Shell: ลบไฟล์ PHP ที่น่าสงสัยทั้งหมดออกจาก upload directory
- 4. ตั้งค่า Web Server: ป้องกันไม่ให้รัน PHP ในโฟลเดอร์ uploads
- 5. Scan ด้วย Antivirus: ใช้ Malwarebytes หรือ Wordfence scan หาไฟล์อันตราย
- 6. ตรวจสอบ Logs: ดู log หา POST request ที่น่าสงสัยไปยัง upload endpoints
📄 รายละเอียดต้นฉบับ (ภาษาอังกฤษ)
In Kura versions <= 5.6.2, `CommandCloudApp.execute()` extracts a caller-supplied ZIP archive into a caller-supplied directory inside the Kura JVM process before dispatching the command to the executor service. On a packaged Kura installation the JVM runs as `kurad` with `CAP_DAC_OVERRIDE`, while the configurable "Unprivileged" executor drops to the `kura` user via `su`. A caller with permissions `rest.command` who is intentionally restricted to unprivileged command execution (`privileged.command.service.enable=false`, the default) can therefore set `workingDirectory` to `/` and use the ZIP body to write or overwrite arbitrary files on the device as `kurad`, completely bypassing the unprivileged sandbox the operator selected. The command service is disabled by default since Kura 4.0.0 [1]. The issue does not apply when the command service is disabled. [1] https://github.com/eclipse-kura/kura/blob/f9f969231892769a269876b23f19fa0e8173e3df/kura/distrib/RELEASE_NOTES.txt#L94