top of page

FortiLogger - Unauthenticated Arbitrary File Upload (Metasploit)

Application Details

FortiLogger is a web-based logging and reporting software designed specifically for FortiGate firewalls, running on Windows operating systems. It contains features such as instant status tracking, logging, search / filtering, reporting and hotspot.


A remote attacker could upload a malicious file under ‘Hotspot Settings’, this is caused by an improper validation of file extensions. A specially crafted request could be sent which would allow the attacker to execute code on the vulnerable system.


There is a Metasploit module available which has been written to exploit the file upload vulnerability.

By stepping through the code I was able to determine that the script performs a check for the vulnerable version before delivering the exploit:

if version <='')
 CheckCode::Vulnerable("FortiLogger version #{version}")
 CheckCode::Safe("FortiLogger version #{version}")

Once the script has confirmed the version number of ‘’ it performs a POST request:

POST /Config/SaveUploadedHotspotLogoFile

This can be used to upload a malicious file as long as it has the content-type of ‘image/png’

Content-Disposition: form-data; name="file"; filename="b3r.asp"
Content-Type: image/png

Once successfully uploaded it can then be executed by sending a GET request:

GET /Assets/temp/hotspot/img/logohotspot.asp


By turning this into a traffic file and matching rule we are able to detect attempts to upload malicious files to the application.


Idappcom has created signature 8020953 along with a traffic file.


Traffic IQ

If you are concerned that your business may be at risk of this vulnerability or others why not try out our Traffic IQ software which can scan your defences and report any issues. Learn more here:


bottom of page