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

Published Mar 12, 2024
·
Updated

A out-of-bounds write 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

20 affected componentsFixes available
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
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
Fortinet FortiOS=7.4.1

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 FortiPAM to a version that resolves this vulnerability.

    Fixed in 1.2.0
  7. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 2.0.14
  8. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.0.13
  9. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.2.7
  10. Upgrade

    Upgrade FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.4.1
  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 devices with captive portal enabled, set a non form-based authentication scheme by running: config authentication scheme; edit schemes; set method <method>; next. Use one of: ntlm, basic, digest, negotiate, fsso (FSSO), rsso (RSSO), ssh-publickey, cert (client certificate), saml.

    FortiOS/FortiProxy captive portal authentication scheme config authentication scheme -> edit schemeset method = Workaround: set method to a non form-based authentication method (e.g., 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
News Published
via BleepingComputer·06:48 PM
News Published
via BleepingComputer·06:49 PM
Jan 24, 2025
Advisory Published
via FortiGuard·03:46 PM
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-42789?

CVE-2023-42789 is considered critical due to its potential to allow unauthorized code execution.

2

How do I fix CVE-2023-42789?

To remediate CVE-2023-42789, upgrade FortiOS to version 7.4.2 or later, or FortiProxy to version 7.4.1 or later.

3

Which versions are affected by CVE-2023-42789?

CVE-2023-42789 affects FortiOS versions 6.2.0 to 7.4.1 and FortiProxy versions 2.0.0 to 7.4.0.

4

Can CVE-2023-42789 lead to data breaches?

Yes, exploitation of CVE-2023-42789 can lead to severe security breaches and unauthorized access to sensitive information.

5

Are there any workarounds for CVE-2023-42789?

There are no effective workarounds for CVE-2023-42789; updating to the patched versions is the recommended action.

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