CVE-2023-42790: Out-of-bounds Write in captive portal

Published Mar 12, 2024
·
Updated

A stack-based buffer overflow vulnerability in Fortinet FortiOS 7.4.0 through 7.4.1, FortiOS 7.2.0 through 7.2.5, FortiOS 7.0.0 through 7.0.12, FortiOS 6.4.0 through 6.4.14, FortiOS 6.2.0 through 6.2.15, FortiProxy 7.4.0, FortiProxy 7.2.0 through 7.2.6, FortiProxy 7.0.0 through 7.0.12, FortiProxy 2.0.0 through 2.0.13, FortiSASE 23.2.b allows attacker to execute unauthorized code or commands via specially crafted HTTP requests.

Other sources

An out-of-bounds write vulnerability [CWE-787] and a Stack-based Buffer Overflow [CWE-121] in FortiOS & FortiProxy captive portal may allow an inside attacker who has access to captive portal to execute arbitrary code or commands via specially crafted HTTP requests.

Workaround:

Set a non form-based authentication scheme:

config authentication schemeedit schemeset method methodnextend

Where <method> can be any of those :

ntlm NTLM authentication.basic Basic HTTP authentication.digest Digest HTTP authentication.negotiate Negotiate authentication.fsso Fortinet Single Sign-On (FSSO) authentication.rsso RADIUS Single Sign-On (RSSO) authentication.ssh-publickey Public key based SSH authentication.cert Client certificate authentication.saml SAML authentication

None of the enabled authentication schemes should be form-based.

Please note that only devices with captive portal enabled are affected.

FortiGuard

Affected Software

19 affected componentsFixes available
Fortinet FortiProxy>=2.0.0<=2.0.13
Fortinet FortiProxy>=7.0.0<=7.0.12
Fortinet FortiProxy>=7.2.0<=7.2.6
Fortinet FortiProxy=7.4.0
Fortinet FortiOS>=6.2.0<=6.2.15
Fortinet FortiOS>=6.4.0<=6.4.14
Fortinet FortiOS>=7.0.0<=7.0.12
Fortinet FortiOS>=7.2.0<=7.2.5
Fortinet FortiOS>=7.4.0<=7.4.1
Fortinet FortiOS>=7.4.0<=7.4.1
Fortinet FortiOS>=7.2.0<=7.2.5
Fortinet FortiOS>=7.0.0<=7.0.12
Fortinet FortiOS>=6.4.0<=6.4.14
Fortinet FortiOS>=6.2.0<=6.2.15
Fortinet FortiProxy=.
Fortinet FortiProxy>=7.2.0<=7.2.6
Fortinet FortiProxy>=7.0.0<=7.0.12
Fortinet FortiProxy>=2.0.0<=2.0.13
Fortinet FortiSASE=3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 6.2.16
  2. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 6.4.15
  3. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 7.0.13
  4. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 7.2.6
  5. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 7.4.2
  6. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 2.0.14
  7. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.0.13
  8. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.2.7
  9. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.4.1
  10. Upgrade

    Upgrade FortiPAM to a version that resolves this vulnerability.

    Fixed in 1.2.0
  11. Upgrade

    Upgrade FortiSwitchManager to a version that resolves this vulnerability.

    Fixed in 7.0.3
  12. Upgrade

    Upgrade FortiSwitchManager to a version that resolves this vulnerability.

    Fixed in 7.2.3
  13. Configuration

    For captive portal, set a non form-based authentication scheme by editing authentication scheme and setting 'method' to one of the allowed non-form-based methods: ntlm, basic, digest, negotiate, fsso (FSSO), rsso (RSSO), ssh-publickey, cert (client certificate), or saml.

    FortiOS / FortiProxy captive portal authentication scheme method = Workaround: set method to one of: ntlm, basic, digest, negotiate, fsso, rsso, ssh-publickey, cert, saml

Event History

Mar 12, 2024
Advisory Published
via FortiGuard·12:00 AM
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Mar 13, 2024
News Published
via The Register·12:16 AM
News Published
via The Register·12:19 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-42790?

CVE-2023-42790 has a critical severity rating due to its potential for remote code execution.

2

How do I fix CVE-2023-42790?

To fix CVE-2023-42790, upgrade FortiOS to version 7.4.2 or later, FortiProxy to version 7.4.1 or later, or apply the relevant patches for affected versions.

3

Which software versions are affected by CVE-2023-42790?

CVE-2023-42790 affects multiple versions of Fortinet FortiOS and FortiProxy, specifically across various versions listed in the CVE description.

4

What kind of attack can exploit CVE-2023-42790?

CVE-2023-42790 can be exploited by an attacker to execute unauthorized code on the affected FortiOS and FortiProxy devices.

5

What products does CVE-2023-42790 impact?

CVE-2023-42790 impacts Fortinet FortiOS and FortiProxy across multiple version ranges as outlined in the vulnerability details.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203