Unit 4: Web Application Exploitation - Practice Quiz

INT245 — Penetration Testing 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which organization manages the standard awareness document for developers and web application security known as the 'Top 10'?

A. OWASP
B. IEEE
C. ISO
D. NIST

2 In the context of OWASP Top 10, which vulnerability allows an attacker to access unauthorized functionality or data, such as viewing another user's account details by simply changing a URL parameter?

A. Security Misconfiguration
B. Cryptographic Failures
C. Broken Access Control
D. Injection

3 Which attack involves an attacker stealing a valid session ID to gain unauthorized access to a web server?

A. Buffer Overflow
B. SQL Injection
C. Session Hijacking
D. Directory Traversal

4 What is the primary mechanism of a Cross-Site Request Forgery (CSRF) attack?

A. Tricking a user's browser into sending an unwanted request to a trusted site where the user is authenticated
B. Brute-forcing the admin password
C. Executing scripts in the victim's browser via a reflected input
D. Injecting malicious SQL scripts into a database

5 Which input would most likely be used to test for a basic SQL Injection vulnerability?

A. ../../etc/passwd
B. ping 127.0.0.1
C. ' OR '1'='1
D. <script>alert(1)</script>

6 What is the primary defense mechanism against SQL Injection attacks?

A. Using Parameterized Queries (Prepared Statements)
B. Using Hashing algorithms
C. Using SSL/TLS
D. Disabling JavaScript

7 Which type of XSS attack occurs when the malicious script is permanently stored on the target server (e.g., in a database or forum post)?

A. Reflected XSS
B. DOM-based XSS
C. Stored (Persistent) XSS
D. Blind XSS

8 In a DOM-based XSS attack, where does the security vulnerability lie?

A. In the client-side code (JavaScript) processing data
B. In the server-side database code
C. In the network transport layer
D. In the web server configuration

9 Which flag should be set on a Set-Cookie HTTP response header to prevent client-side scripts (like XSS payloads) from accessing the cookie?

A. Secure
B. SameSite
C. Expires
D. HttpOnly

10 BeEF is a popular penetration testing tool. What does the acronym stand for?

A. Basic Exploitation Environment Frontend
B. Binary Encryption and Encoding Facility
C. Browser Exploitation Framework
D. Backend Engineering Exploitation File

11 Which SQL injection technique involves asking the database true/false questions and determining the answer based on the application's response time?

A. Union-based SQLi
B. Error-based SQLi
C. Time-based Blind SQLi
D. Out-of-band SQLi

12 What is the mathematical logic often used in tautology-based SQL injection?

A. (Imaginary)
B. where A is false
C.
D. (Always True)

13 Which mobile deployment model allows employees to use their personal devices for work but requires them to install a Mobile Device Management (MDM) agent?

A. COPE (Corporate Owned, Personally Enabled)
B. BYOD (Bring Your Own Device)
C. CYOD (Choose Your Own Device)
D. Direct Access

14 Which OWASP Mobile Top 10 vulnerability refers to the storage of sensitive data (like passwords or API keys) in plain text within the device's file system?

A. Extraneous Functionality
B. Improper Platform Usage
C. Insecure Data Storage
D. Insecure Communication

15 What is 'Jailbreaking' in the context of mobile security?

A. Removing software restrictions imposed by the manufacturer on iOS devices
B. Creating a sandbox environment for apps
C. Escaping a physical prison using a mobile phone
D. Encrypting the file system of an Android device

16 Which Bluetooth attack involves sending unsolicited messages (often vCards or images) to a Bluetooth-enabled device?

A. Bluejacking
B. Blueborne
C. Bluebugging
D. Bluesnarfing

17 Which Bluetooth attack allows an attacker to steal data (contacts, calendars, emails) from a device?

A. Bluesnarfing
B. Frequency Hopping
C. Bluejacking
D. Pairing Spoofing

18 Which tool is commonly used to automate the detection and exploitation of SQL injection flaws?

A. John the Ripper
B. sqlmap
C. Aircrack-ng
D. Hydra

19 What does a 'Union-based' SQL injection allow an attacker to do?

A. Shut down the database server
B. Combine the results of the original query with the results of a malicious injected query
C. Delete the database schema
D. Encrypt the database contents

20 Which social engineering attack targets mobile users via SMS messages containing malicious links?

A. Vishing
B. Whaling
C. Smishing
D. Phishing

21 In the context of browser exploitation, what is a 'hook'?

A. A hardware keylogger
B. A method to close the browser remotely
C. A script that binds the victim's browser to the attacker's framework (e.g., BeEF)
D. A phishing email subject line

22 Which mitigation technique involves generating a unique random token for every user session and validating it with every state-changing request to prevent CSRF?

A. Database Encryption
B. Anti-CSRF Token (Synchronizer Token Pattern)
C. Input Sanitization
D. Turning off Cookies

23 What is 'Bluebugging'?

A. Taking full control of a Bluetooth device to make calls or listen to conversations
B. Scanning for Bluetooth devices
C. Jamming a Bluetooth signal
D. Sending a virus via Bluetooth

24 Which vulnerability allows an attacker to inject malicious code into a website that is then executed by other users?

A. XXE
B. SSRF
C. XSS
D. RCE

25 Which COPE deployment model stands for?

A. Corporate Owned, Personally Enabled
B. Company Operated, Public Entry
C. Corporate Owned, Public Enabled
D. Computer Operated, Private Encryption

26 Which type of malware disguises itself as legitimate software to trick the user into installing it?

A. Trojan Horse
B. Keylogger
C. Worm
D. Logic Bomb

27 What is the primary risk associated with 'Side-Loading' apps on Android?

A. It requires root access
B. It slows down the internet connection
C. It automatically deletes system files
D. It bypasses the official app store security checks, increasing malware risk

28 Which attack involves an attacker creating a fake mobile transmission tower to intercept mobile traffic?

A. Rogue Access Point
B. IMSI Catcher (Stingray)
C. NFC Replay
D. Evil Twin

29 Identify the vulnerability: An application allows uploading a file named shell.php without validating the file type.

A. SQL Injection
B. Unrestricted File Upload
C. Path Traversal
D. XSS

30 Which component is essential for a 'Reflected XSS' attack to succeed?

A. Access to the database
B. Root access to the server
C. A stored comment on a blog
D. Social engineering to trick a user into clicking a crafted link

31 What does the 'SameSite' cookie attribute helps prevent?

A. CSRF (Cross-Site Request Forgery)
B. SQL Injection
C. Password Cracking
D. Buffer Overflows

32 Which of the following is a symptom of a mobile device being infected with spyware?

A. Screen becomes brighter
B. Improved battery life
C. Faster performance
D. Unexpected high data usage and rapid battery drain

33 Reverse engineering an Android app (APK) is often used in penetration testing to:

A. Compress the file size
B. Increase the app's speed
C. Identify hardcoded API keys and logic vulnerabilities
D. Upgrade the Android OS

34 Which attack involves overlaying a legitimate application with a fake window to trick users into entering sensitive data on a mobile device?

A. Bluejacking
B. Tapjacking / Overlay Attack
C. Rooting
D. SIM Swapping

35 In SQL Injection, what is the purpose of the -- or # characters?

A. To encrypt the payload
B. To comment out the rest of the original SQL query
C. To start a new table
D. To execute the query immediately

36 Which of the following represents a 'Blind' SQL Injection scenario?

A. The application returns the full database error message
B. The application crashes the server immediately
C. The application returns the results of the UNION SELECT query on the screen
D. The application does not return data but behaves differently (true/false) based on the injection

37 Which mobile vulnerability involves an app accidentally sharing access to its components (Activities, Services) with other malicious apps?

A. Improper Platform Usage (Exported Components)
B. Insecure Data Storage
C. Client Code Quality
D. Broken Cryptography

38 What is 'Vishing'?

A. VPN Phishing
B. Video Phishing
C. Virtual Phishing
D. Voice Phishing (using phone calls)

39 Which technique is used to bypass mobile device screen locks using residues left by fingers?

A. Rainbow Table
B. Brute Force
C. Dictionary Attack
D. Smudge Attack

40 Which of the following is a valid method to secure a session ID?

A. Storing it in a public folder
B. Storing it in the URL
C. Regenerating the Session ID after a successful login
D. Using a short, predictable sequence

41 Malware that encrypts a user's files and demands payment for the decryption key is known as:

A. Ransomware
B. Adware
C. Spyware
D. Rootkit

42 In the context of malware, what is a 'Wrapper' or 'Binder'?

A. A tool used to combine a malicious executable with a legitimate file
B. A secure coding standard
C. A firewall rule
D. A type of antivirus

43 What is the function of a C2 (Command and Control) server in a malware attack?

A. To issue instructions to compromised devices (botnet) and receive stolen data
B. To validate SSL certificates
C. To prevent DDOS attacks
D. To store the company's backups

44 Which encoding is often used in XSS payloads to bypass basic keyword filters (e.g., converting < to %3C)?

A. URL Encoding (Percent Encoding)
B. Base64
C. Rot13
D. MD5

45 What is 'Session Fixation'?

A. The server crashing due to too many sessions
B. An attacker stealing a session cookie via XSS
C. An attacker setting a user's session ID to a known value before the user logs in
D. Fixing a broken session link

46 Which tool is specifically designed for decompiling Android applications into readable Java source code?

A. Metasploit
B. Nmap
C. Wireshark
D. Jadx / APKTool

47 If an attacker inputs admin' -- into a login field, they are attempting to bypass authentication via:

A. SQL Injection
B. Cross-Site Scripting
C. Buffer Overflow
D. Path Traversal

48 Which of the following is an example of a Social Engineering attack utilizing authority?

A. A brute force attack on a password
B. An attacker pretending to be the CEO asking for an urgent wire transfer
C. Scanning ports on a server
D. Injecting SQL code

49 What defines a 'Hybrid' mobile application?

A. It is written purely in Assembly language
B. It runs only on Android
C. It runs only on iOS
D. It is a web application wrapped in a native container

50 Which mathematical concept is primarily compromised when an attacker successfully performs a 'Integer Overflow' attack on a web application?

A. Data Integrity / Correctness of calculation
B. Confidentiality
C. Network Latency
D. Bandwidth