Rapid7 Vulnerability & Exploit Database

Railo Remote File Include

Back to Search

Railo Remote File Include



This module exploits a remote file include vulnerability in Railo, tested against version 4.2.1. First, a call using a vulnerable line in thumbnail.cfm allows an attacker to download an arbitrary PNG file. By appending a .cfm, and taking advantage of a directory traversal, an attacker can append cold fusion markup to the PNG file, and have it interpreted by the server. This is used to stage and execute a fully-fledged payload.


  • Bryan Alexander <drone@ballastsecurity.net>
  • bperry




Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/railo_cfml_rfi
msf exploit(railo_cfml_rfi) > show targets
msf exploit(railo_cfml_rfi) > set TARGET < target-id >
msf exploit(railo_cfml_rfi) > show options
    ...show and set options...
msf exploit(railo_cfml_rfi) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security