CVE-2023-30806CWE-78

Sangfor Next-Gen Application Firewall PHPSESSID Command Injection

Critical · published October 10, 2023

Patch now

High probability of exploitation

CVSS calls it critical at 9.8. It sits in the 99.3th percentile for exploit probability.

CVSS v3.1
9.8
EPSS
65%
Percentile
99.3
In the wild
Unconfirmed
What it is

🚨 An unauthenticated command injection is lurking in Sangfor's Next-Gen Application Firewall! A simple crafted POST request to /cgi-bin/login.cgi could let attackers execute any command on your system! 🔥 Think of it like a restaurant where a customer can slip a note directly to the chef, bypassing the waitstaff entirely. With just a few crafty words, they could order the chef to create anything—nothing stops them! This vulnerability is absolutely devastating! If exploited, a remote attacker could gain complete control over the firewall and execute arbitrary commands, potentially compromising sensitive data or even shutting down systems. Imagine opening the gates for intruders when you thought they were securely locked!

Put simply

Think of it like a restaurant where a customer can slip a note directly to the chef, bypassing the waitstaff entirely. With just a few crafty words, they could order the chef to create anything—nothing stops them! This operating system command injection vulnerability occurs due to improper handling of shell meta-characters in the PHPSESSID cookie, allowing attackers to inject commands through the login endpoint without any authentication required.

What to do

This vulnerability is absolutely devastating! If exploited, a remote attacker could gain complete control over the firewall and execute arbitrary commands, potentially compromising sensitive data or even shutting down systems. Imagine opening the gates for intruders when you thought they were securely locked! Immediate action is required! Update to Sangfor NGAF version 8.0.18 to patch this vulnerability and ensure strict input validation on HTTP requests to safeguard against command injection. Don't forget to review and secure other endpoints as well! You've got this! Follow these steps to secure your system and keep those hackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.64974 · 99.3th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2023-10-10T14:27Z
EPSS history
Timeline
  • 10 OCT 14:27Z
    Sangfor Next-Gen Application Firewall PHPSESSID Command Injection
    cvelistv5