Root command execution via unsanitized SAML name
Published Jun 1, 2021 · Updated Oct 25, 2024
OS command injection in affected Fortinet FortiWeb releases allows remote authenticated users to execute root commands through SAML configuration. The move_metafile routine inserts the untrusted SAML Name field into mkdir and cp command strings passed to system(), so backticks execute as root. A management-interface account is required; affected releases are 6.3.7 and earlier, 6.2.3 and earlier, 6.1.x, 6.0.x, and 5.9.x.
Summary
What happened
OS command injection in affected Fortinet FortiWeb releases allows remote authenticated users to execute root commands through SAML configuration. The move_metafile routine inserts the untrusted SAML Name field into mkdir and cp command strings passed to system(), so backticks execute as root. A management-interface account is required; affected releases are 6.3.7 and earlier, 6.2.3 and earlier, 6.1.x, 6.0.x, and 5.9.x.
The record
- CVE
- CVE-2021-22123
- Published
- Jun 1, 2021
- Updated
- Oct 25, 2024
- Vendor
- Fortinet
- Product
- FortiWeb
- Classifications
- CWE-78, T1059.004
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 1, 2021CVE publishedPublication date reported by the CVE source.
- Oct 25, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=FortiWeb 6.3.7 and below, 6.2.3 and below, 6.1.x, 6.0.x, 5.9.x
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Rapid7 authenticated SAML Name-field command-injection demonstrationfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo