===========================================================================
             AUSCERT External Security Bulletin Redistribution             
                                                                           
                               ESB-2024.2168                               
             FortiManager - Code Injection via Jinja Template              
                               10 April 2024                               
                                                                           
===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           FortiManager                                            
Publisher:         Fortinet                                                
Operating System:  Fortinet                                                
Resolution:        Patch/Upgrade                                           
CVE Names:         CVE-2023-47542                                          

Original Bulletin:
   https://fortiguard.fortinet.com/psirt/FG-IR-23-419

Comment: CVSS (Max):  6.3 CVE-2023-47542 (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C)
         CVSS Source: Fortinet                                             
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C


- --------------------------BEGIN INCLUDED TEXT--------------------

FortiManager - Code Injection via Jinja Template

IR Number    : FG-IR-23-419
Date         : Apr 9, 2024
Severity     : Medium
CVSSv3 Score : 6.3
Impact       : Execute unauthorized code or commands
CVE ID       : CVE-2023-47542

Summary

An improper neutralization of special elements used in a template engine
[CWE-1336] vulnerability in FortiManager provisioning templates may allow a
local authenticated attacker with at least read-only permissions to execute
arbitrary code via specially crafted templates.

Version          | Affected             | Solution                  
FortiManager 7.4 | 7.4.0 through 7.4.1  | Upgrade to 7.4.2 or above 
FortiManager 7.2 | 7.2.0 through 7.2.4  | Upgrade to 7.2.5 or above 
FortiManager 7.0 | 7.0.0 through 7.0.10 | Upgrade to 7.0.11 or above

Workaround- Disable "Provisioning Templates" and "Install Policy Package or
Device Configuration" privileges unless strictly necessary.

Acknowledgement

Fortinet is pleased to thank Christian Hilgers and Maxence Bornecque for
reporting this vulnerability under responsible disclosure.

Timeline

2024-04-09: Initial publication

- --------------------------END INCLUDED TEXT----------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================