Free 312-50v13 Exam Braindumps
Certified Ethical Hacker v13 Questions 241–248 (page: 32)

Updated On: 29-Jul-2026

During a penetration test, an ethical hacker is exploring the security of a complex web application. The application heavily relies on JavaScript for client-side input sanitization, with an apparent assumption that this alone is adequate to prevent injection attacks. During the investigation, the ethical hacker also notices that the application utilizes cookies to manage user sessions but does not enable the HttpOnly flag. This lack of flag potentially exposes the cookies to client-side scripts. Given these identified vulnerabilities, what would be the most effective strategy for the ethical hacker to exploit this application?

  1. Instigate a Distributed Denial of Service (DDoS) attack to overload the server, capitalizing on potential weak server-side security.
  2. Implement an SQL Injection attack to take advantage of potential unvalidated input and gain unauthorized database access.
  3. Employ a brute-force attack to decipher user credentials, considering the lack of server-side validation.
  4. Launch a Cross-Site Scripting (XSS) attack, aiming to bypass the client-side sanitization and exploit the exposure of session cookies.

Answer(s): D

Explanation:

D is correct because launching a Cross-Site Scripting (XSS) attack against the application allows the ethical hacker to exploit the vulnerabilities in client-side script sanitization and steal session cookies.
The reasoning is grounded in the security implications of relying solely on client-side sanitization. Such scripts can easily be bypassed by an attacker if they inject malicious JavaScript, which is feasible in a context where server-side validation is lacking. The absence of the HttpOnly flag on cookies compounds these risks, allowing scripts to access session tokens and potentially take over user sessions. With session hijacking through XSS, the hacker can elevate their privileges and gain unauthorized access to sensitive information.
Evaluation of Incorrect Options:

A: Distributed Denial of Service (DDoS) Attack : This approach targets availability rather than gaining unauthorized access or exploitation of sensitive data.
While overloading the server may reveal weaknesses, it does not directly exploit the application's vulnerabilities related to input sanitization or session management.
B: SQL Injection Attack : While SQL injection can exploit a lack of server-side validation, this assumption requires the existence of a backend database vulnerability. Given the specified emphasis on client-side flaws and the noted JavaScript reliance, XSS presents a more immediate and exploitable threat. Additionally, the hacker needs to validate input at the server level, which may not be compromised here.
C: Brute-Force Attack on Credentials : This method relies on guessing user credentials, typically contravening session management best practices such as account lockouts. Furthermore, with an emphasis on JavaScript handling, the application might implement countermeasures against brute-force attempts, making this strategy less effective compared to exploiting vulnerabilities like XSS.
References:
https://owasp.org/www-community/attacks/Cross-site_scripting_(XSS) https://owasp.org/www-community/SQL_Injection_Prevention_Cheat_Sheet https://www.owasp.org/index.php/HttpOnly


Reference:

References:
https://owasp.org/www-community/attacks/Cross-site_scripting_(XSS) https://owasp.org/www-community/SQL_Injection_Prevention_Cheat_Sheet https://www.owasp.org/index.php/HttpOnly



In the process of footprinting a target website, an ethical hacker utilized various tools to gather critical information. The hacker encountered a target site where standard web spiders were ineffective due to a specific file in its root directory. However, they managed to uncover all the files and web pages on the target site, monitoring the resulting incoming and outgoing traffic while browsing the website manually.
What technique did the hacker likely employ to achieve this?

  1. Using the Netcraft tool to gather website information
  2. Examining HTML source code and cookies
  3. Using Photon to retrieve archived URLs of the target website from archive.org
  4. User-directed spidering with tools like Burp Suite and WebScarab

Answer(s): D

Explanation:

D is correct because user-directed spidering with tools like Burp Suite and WebScarab allows for granular control over website navigation, capturing extensive information despite standard barriers such as disallowed spiders.
Reasoning: User-directed spidering, as facilitated by tools like Burp Suite and WebScarab, enables ethical hackers to manually navigate a website while simultaneously analyzing network traffic. This method provides the capability to interactively test various endpoints, effectively overcoming restrictions implemented by robots.txt files or similar protective measures. It allows for comprehensive discovery of hidden files and directories through manual exploration, often coupled with automated requests that reveal site architecture, resource paths, and web applications’ functionalities.
Evaluation of Other Options:

A: Using the Netcraft tool to gather website information:While Netcraft can provide valuable insights such as server headers and uptime, it primarily extracts high-level information and does not facilitate interaction with the target site’s dynamic content or hidden paths.
B: Examining HTML source code and cookies:Though this approach can uncover some critical data, it lacks the dynamic interaction with the website and does not capture all server responses, particularly those handled by JavaScript or generated dynamically post-page load.
C: Using Photon to retrieve archived URLs of the target website from archive.org:Photon serves primarily to aggregate information from archived versions, but it does not allow for real-time browsing or traffic monitoring, thus limiting the hacker’s ability to gather comprehensive data from live interactions.
References:
https://portswigger.net/burp https://www.owasp.org/index.php/WebScarab https://sucuri.net/blog/2020/09/exploring-web-app-security-testing-tools.html


Reference:

References:
https://portswigger.net/burp https://www.owasp.org/index.php/WebScarab https://sucuri.net/blog/2020/09/exploring-web-app-security-testing-tools.html



During a comprehensive security assessment, your cybersecurity team at XYZ Corp stumbles upon signs that point toward a possible Advanced Persistent Threat (APT) infiltration in the network infrastructure. These sophisticated threats often exhibit subtle indicators that distinguish them from other types of cyberattacks. To confirm your suspicion and adequately isolate the potential APT, which of the following actions should you prioritize?

  1. Investigate for anomalies in file movements or unauthorized data access attempts within your database system
  2. Scrutinize for repeat network login attempts from unrecognized geographical regions
  3. Vigilantly monitor for evidence of zero-day exploits that manage to evade your firewall or antivirus software
  4. Search for proof of a spear-phishing attempt, such as the presence of malicious emails or risky attachments

Answer(s): A

Explanation:

A is correct because investigating anomalies in file movements or unauthorized data access attempts is crucial in detecting the subtle indicators of an APT, as these threats often aim to remain stealthy while exploiting sensitive data.
Justification for A:
Advanced Persistent Threats are characterized by their long-term presence in a network, emphasizing stealth and persistence. Anomalies in file movements can indicate unauthorized access, data exfiltration, or lateral movement within the infrastructure. By focusing on these aspects, the cybersecurity team can discern irregular patterns that signify malicious intent, thus enabling early intervention before significant damage occurs.
Evaluation of Other Options:
B: Scrutinize for repeat network login attempts from unrecognized geographical regions: While monitoring for irregular login attempts is essential, APTs often utilize legitimate credentials or maintain a low profile to evade detection. Therefore, failure to identify unauthorized data access may mask significant underlying anomalies, making this less effective as a first measure.
C: Vigilantly monitor for evidence of zero-day exploits that manage to evade your firewall or antivirus software: Although zero-day vulnerabilities are a concern, APTs typically employ a multifaceted strategy that relies on stealthy methodologies rather than solely exploiting unpatched software. This focus alone may overlook critical indicators of compromise within the broader context of user behavior and data access.
D: Search for proof of a spear-phishing attempt, such as the presence of malicious emails or risky attachments: While spear-phishing is a common initial vector for APTs, confirming an incident after the fact does not address ongoing infiltration. The immediate analysis of data access patterns provides a proactive approach to countering APT tactics before they can escalate.
References:
https://www.cisa.gov/publications-library/resources/cybersecurity-advanced-persistent-threats https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/apt1.pdf https://www.wired.com/story/the-sneaky-world-of-advanced-persistent-threats/


Reference:

References:
https://www.cisa.gov/publications-library/resources/cybersecurity-advanced-persistent-threats https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/apt1.pdf https://www.wired.com/story/the-sneaky-world-of-advanced-persistent-threats/



As a budding cybersecurity enthusiast, you have set up a small lab at home to learn more about wireless network security.
While experimenting with your home Wi-Fi network, you decide to use a well-known hacking tool to capture network traffic and attempt to crack the Wi-Fi password. However, despite many attempts, you have been unsuccessful. Your home Wi-Fi network uses WPA2 Personal with AES encryption.
Why are you finding it difficult to crack the Wi-Fi password?

  1. Your hacking tool is outdated.
  2. The Wi-Fi password is too complex and long.
  3. The network is using an uncrackable encryption method.
  4. The network is using MAC address filtering.

Answer(s): B

Explanation:

B is correct because the complexity and length of the Wi-Fi password significantly increase the difficulty of a successful brute-force attack.
The primary challenge in cracking a WPA2 Personal network is the combination of complex password requirements and the strength of encryption. WPA2 uses Advanced Encryption Standard (AES) for encryption, which, when combined with a long and intricate password, creates a highly secure setup. The entropy related to password complexity adds to the computational effort required to guess or derive the password against standard hash functions utilized in WPA2 handshakes, making a successful attack improbable.
Evaluation of other options:

A: Your hacking tool is outdated.
While using an outdated tool may limit functionality or exploit effectiveness, contemporary tools are often sufficient for capturing handshakes. Therefore, the primary issue is more likely the password complexity rather than the tool itself.
C: The network is using an uncrackable encryption method. No encryption method is uncrackable if sufficient time and resources are applied. WPA2 with AES is highly secure but not invulnerable. Thus, the assertion of uncrackability misrepresents the practical outcome of password complexity.
D: The network is using MAC address filtering. MAC address filtering typically limits which devices can connect to the network but does not inherently affect the ability to crack the encryption of captured traffic. This method adds a layer of access control but does not hinder brute-force attack effectiveness on the password once a handshake is captured.
References:
https://www.securify.com/blog/why-wpa-2-psk-connection-securing-your-wireless-networks https://www.troyhunt.com/understanding-wpa2-psk-and-how-to-crack-it/ https://www.cyberciti.biz/tips/wpa2-psk-cracking-hacking.html


Reference:

References:
https://www.securify.com/blog/why-wpa-2-psk-connection-securing-your-wireless-networks https://www.troyhunt.com/understanding-wpa2-psk-and-how-to-crack-it/ https://www.cyberciti.biz/tips/wpa2-psk-cracking-hacking.html



An ethical hacker is testing a web application of a financial firm. During the test, a 'Contact Us' form's input field is found to lack proper user input validation, indicating a potential Cross-Site Scripting (XSS) vulnerability. However, the application has a stringent Content Security Policy (CSP) disallowing inline scripts and scripts from external domains but permitting scripts from its own domain.
What would be the hacker's next step to confirm the XSS vulnerability?

  1. Utilize a script hosted on the application's domain to test the form
  2. Try to disable the CSP to bypass script restrictions
  3. Inject a benign script inline to the form to see if it executes
  4. Load a script from an external domain to test the vulnerability

Answer(s): A

Explanation:

The correct answer is A: Utilize a script hosted on the application's domain to test the form.
Utilizing a script hosted on the application's domain to confirm a Cross-Site Scripting (XSS) vulnerability aligns with the Content Security Policy (CSP) in place, which permits scripts from the same origin. This approach allows for the legitimate execution of the script without violating the CSP constraints, making it a valid method to test for XSS. By injecting a crafted payload via the 'Contact Us' form and checking for script execution or intended manipulation, an ethical hacker can ascertain whether the application is indeed vulnerable to XSS exploits.
Evaluation of Other Options:
B: Try to disable the CSP to bypass script restrictions : Disabling CSP is often not feasible from the testing perspective because it's a browser-enforced security standard. Ethical hackers respect the testing environment and adhere to legal and ethical guidelines, making this approach impractical.
C: Inject a benign script inline to the form to see if it executes : Injecting inline scripts directly contradicts the defined CSP, which explicitly disallows inline scripts. This method would not yield a valid assessment of the vulnerability, as it would not be executed in a correctly functioning security context.
D: Load a script from an external domain to test the vulnerability : This option is also invalid due to the CSP restrictions explicitly disallowing external scripts. Attempting this would not only be ineffective in exploiting the vulnerability but might also lead to misinterpretation of the application's security posture.
In summary, leveraging the existing policy framework of the application by injecting scripts from a permitted domain is the most effective, ethical, and compliant method to investigate potential XSS vulnerabilities further.
References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP https://owasp.org/www-community/attacks/Cross-site_Scripting_Cross-site_scripting https://www.owasp.org/index.php/Cross-site_scripting_(XSS)


Reference:

References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP https://owasp.org/www-community/attacks/Cross-site_Scripting_Cross-site_scripting https://www.owasp.org/index.php/Cross-site_scripting_(XSS)



John, a security analyst, is analyzing a server suspected of being compromised. The attacker has used a non admin account and has already gained a foothold on the system. John discovers that a new Dynamic Link Library is loaded in the application directory of the affected server. This DLL does not have a fully qualified path and seems to be malicious.
What privilege escalation technique has the attacker likely used to compromise this server?

  1. DLL Hijacking
  2. Named Pipe Impersonation
  3. Spectre and Meltdown Vulnerabilities
  4. Exploiting Misconfigured Services

Answer(s): A

Explanation:

A: DLL Hijacking is the correct answer because it exploits the way applications load libraries, allowing an attacker to inject malicious code into a vulnerable application.
DLL Hijacking occurs when an attacker places a malicious Dynamic Link Library in an application's path, prompting the application to load the compromised DLL instead of the legitimate one. This technique often targets non-admin accounts, as these accounts usually possess sufficient privileges to execute applications but lack access to system directories, making them ideal targets. The presence of a newly introduced DLL in the application directory strongly indicates an alteration attempting to gain elevated permissions or execute unauthorized code without user intervention.
Critical Evaluation of Other Options:
B: Named Pipe Impersonation : This technique typically involves gaining access tokens from a service or a user process via named pipes.
While it can be used for privilege escalation, it is not specifically linked to the presence of a new DLL file and relies more on inter-process communication rather than library loading mechanisms.
C: Spectre and Meltdown Vulnerabilities : These are hardware-based vulnerabilities that affect modern microprocessors and involve speculation execution flaws. They require sophisticated exploit techniques and do not relate directly to unauthorized DLL loading behaviors observed in application directories.
D: Exploiting Misconfigured Services : This refers to attacking services that run with elevated privileges due to poor configurations. Although it can lead to compromise, it does not inherently explain the introduction of a foreign DLL in the application directory; such an attack would typically involve application behavior rather than DLL exploitation.
Relevant references:
https://www.cato.com/blog/dll-hijacking-an-in-depth-approach-to-preventing-malicious-executables https://portswigger.net/research/exploiting-dll-hijacking https://www.microsoft.com/security/blog/2021/06/18/app-and-dll-hijacking-attacks/



Alex, a cloud security engineer working in Eyecloud Inc. is tasked with isolating applications from the underlying infrastructure and stimulating communication via well-defined channels. For this purpose, he used an open-source technology that helped him in developing, packaging, and running applications; further, the technology provides PaaS through OS-level virtualization, delivers containerized software packages, and promotes fast software delivery.
What is the cloud technology employed by Alex in the above scenario?

  1. Virtual machine
  2. Docker
  3. Zero trust network
  4. Serverless computing

Answer(s): B

Explanation:

B is correct because Docker is a leading open-source platform that enables the development, packaging, and running of applications in isolated containers, facilitating efficient communication and enhancing software delivery.
Docker’s architecture employs OS-level virtualization, allowing multiple applications to share the same operating system while remaining isolated, which aligns with Alex's goals of isolating applications and utilizing well-defined communication channels. The technology is particularly well-suited for Platform as a
Service (PaaS) configurations due to its lightweight nature and rapid deployment capabilities, enhancing agility in software development and operations.
Evaluation of Other Options:

A: Virtual Machine: While virtual machines (VMs) offer isolation similar to containers, they operate at the hardware level, requiring separate OS instances and more resources. This contrasts with Docker's lightweight containerization which minimizes overhead and promotes faster delivery.
C: Zero Trust Network: This security framework focuses on network-level security by verifying every user and device, rather than on application isolation or rapid software deployment. Therefore, it does not fit the criteria of providing containerized software packages or facilitating communication between applications.
D: Serverless Computing: Serverless computing abstracts the infrastructure management but does so without the emphasis on containerization. It enhances deployment speed but does not necessarily create isolation or defined communication channels in the same manner as Docker does, making it less suitable for Alex's requirements.
For authoritative references on the discussed technologies:
https://www.docker.com/resources/what-container https://www.cloudnative.io/what-is-cloud-native/ https://www.redhat.com/en/topics/containers/what-is-docker



Henry is a penetration tester who works for XYZ organization.
While performing enumeration on a client organization, he queries the DNS server for a specific cached DNS record. Further, by using this cached record, he determines the sites recently visited by the organization's user.
What is the enumeration technique used by Henry on the organization?

  1. DNS zone walking
  2. DNS cache snooping
  3. DNS cache poisoning
  4. DNSSEC zone walking

Answer(s): B

Explanation:

B is correct as it accurately describes the technique of DNS cache snooping, where an attacker investigates cached DNS records to identify websites visited by users.
Justification for Correct Answer (B: DNS cache snooping)
DNS cache snooping is a technique used to determine the presence of specific DNS records in a server's cache, allowing an attacker to infer recently visited sites by users within an organization. By querying a DNS server for specific records, Henry can ascertain which sites are likely to have been visited based on the information available in the cache. This approach relies on the behavior of DNS servers to retain queries for a period, effectively exposing user browsing habits if misconfigured.
Evaluation of Incorrect Options

A: DNS zone walking : This method refers to the process of enumerating DNS records by exploiting non-secured DNS zones, particularly in the context of DNSSEC. This option is not relevant because Henry is not attempting to gather all DNS records or exploit zone transfers.
C: DNS cache poisoning : This technique involves injecting false DNS entries into a DNS cache to redirect users.
While it manipulates DNS responses, it does not involve extracting information about already cached entries as seen in Henry's actions.
D: DNSSEC zone walking : Similar to DNS zone walking but specifically focuses on the use of DNS Security Extensions (DNSSEC) to validate the authenticity of DNS responses. This option is not applicable here, as the original question deals with querying cached records rather than validation processes.


Reference:

1. https://www.owasp.org/index.php/Domain_Name_Services_(DNS)_vulnerabilities 2. https://www.acs.com.hk/en/products/1203/acr38-smart-card-reader/ 3. https://www.sans.org/white-papers/32622/



Viewing page 32 of 133
Viewing questions 249 - 256 out of 1436 questions


Post your Comments and Discuss EC-Council 312-50v13 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!