nerdexam
CompTIA

PT0-002 · Question #211

A penetration tester has established an on-path position between a target host and local network services but has not been able to establish an on-path position between the target host and the…

The correct answer is B. Exploit the local DNS server and add/update the zone records with a spoofed A record. To subtly redirect HTTP connections to a spoofed server IP when having on-path access to local network services, exploiting the local DNS server to add or update zone records is the best method.

Attacks and Exploits

Question

A penetration tester has established an on-path position between a target host and local network services but has not been able to establish an on-path position between the target host and the Internet. Regardless, the tester would like to subtly redirect HTTP connections to a spoofed server IP. Which of the following methods would BEST support the objective?

Options

  • AGain access to the target host and implant malware specially crafted for this purpose.
  • BExploit the local DNS server and add/update the zone records with a spoofed A record.
  • CUse the Scapy utility to overwrite name resolution fields in the DNS query response.
  • DProxy HTTP connections from the target host to that of the spoofed host.

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    70% (31)
  • C
    5% (2)
  • D
    18% (8)

Why each option

To subtly redirect HTTP connections to a spoofed server IP when having on-path access to local network services, exploiting the local DNS server to add or update zone records is the best method.

AGain access to the target host and implant malware specially crafted for this purpose.

Gaining access to the target host and implanting malware is more invasive and less subtle than redirecting traffic via DNS manipulation, and may not be necessary if network-level control is sufficient.

BExploit the local DNS server and add/update the zone records with a spoofed A record.Correct

By exploiting the local DNS server and adding or updating zone records with a spoofed A record, the attacker can ensure that any client requesting a specific domain name within the local network receives the attacker's controlled IP address. This method is subtle as the client's DNS query appears normal, and the redirection happens at the name resolution stage without direct manipulation of the target host or its connections.

CUse the Scapy utility to overwrite name resolution fields in the DNS query response.

Using Scapy to overwrite name resolution fields in DNS query responses involves active, real-time packet manipulation, which can be less subtle and persistent than directly modifying the DNS server's records, especially given the constraint of not having on-path access to the Internet.

DProxy HTTP connections from the target host to that of the spoofed host.

Proxying HTTP connections typically requires configuring the target to use a proxy or establishing a transparent proxy that can intercept all traffic, which might not be subtle or feasible without full on-path Internet access.

Concept tested: DNS spoofing, network redirection, local network exploitation

Source: https://csrc.nist.gov/glossary/term/dns-spoofing

Topics

#DNS spoofing#Network redirection#On-path attacks#Local network exploitation

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice