CAP Exam Questions & Answers
Certified AppSec Practitioner Exam • The SecOps Group
100% money-back guarantee
Sample CAP Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
Which of the following is NOT a Server-Side attack?
Server-side attacks target vulnerabilities on the server, often involving code execution, data manipulation, or unauthorized access to server resources. Let's evaluate each option:
Option A ('OS Code Injection'): This is a server-side attack where an attacker injects operating system commands (e.g., via system() calls in PHP) to execute arbitrary code on the server, such as rm -rf /.
Option B ('Cross-Site Request Forgery'): CSRF is a client-side attack where an attacker tricks a user's browser into making an unintended request to a server where the user is authenticated (e.g., submitting a form to transfer funds). The attack exploits the client's trust in the user's session, not a server-side vulnerability. Thus, it is not a server-side attack.
Option C ('SQL Injection'): This is a server-side attack where an attacker injects malicious SQL code into a query (e.g., ' OR '1'='1) to manipulate the database, potentially extracting data or modifying records.
Option D ('Directory Traversal Attack'): This is a server-side attack where an attacker manipulates file paths (e.g., ../../etc/passwd) to access unauthorized files on the server outside the intended directory.
The correct answer is B, aligning with the CAP syllabus under 'Client-Side vs. Server-Side Attacks' and 'CSRF Prevention.'
What is the full form of SAML?
SAML (Security Assertion Markup Language) is an open standard for exchanging authentication and authorization data between parties, particularly in the context of single sign-on (SSO). It is based on XML and is widely used to enable secure web-based authentication and authorization across different domains. The correct full form is Security Assertion Markup Language, where 'Assertion' refers to statements about a subject (e.g., identity, attributes), 'Markup' indicates the XML-based structure, and 'Language' denotes the defined syntax.
Option A ('Security Assertion Markup Language'): This is the correct and official full form of SAML as defined by OASIS (Organization for the Advancement of Structured Information Standards).
Option B ('Security Authorization Markup Language'): Incorrect, as 'Authorization' is not part of the acronym; SAML focuses on both authentication and authorization assertions.
Option C ('Security Assertion Management Language'): Incorrect, as 'Management' is not part of the acronym; SAML is about markup, not management.
Option D ('Secure Authentication Markup Language'): Incorrect, as 'Secure' is not part of the acronym, and SAML covers more than just authentication.
The correct answer is A, aligning with the CAP syllabus under 'Authentication and Authorization' and 'Single Sign-On (SSO) Standards.'
Which of the following SSL/TLS protocols are considered to be insecure?
SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are cryptographic protocols used to secure communication over a network. The security of these protocols has evolved over time, with older versions being deprecated due to identified vulnerabilities. SSLv2 and SSLv3 are considered insecure because they are vulnerable to attacks such as POODLE (Padding Oracle On Downgraded Legacy Encryption), which exploits weaknesses in their padding schemes. Similarly, TLSv1.0 and TLSv1.1 are also deemed insecure due to vulnerabilities like BEAST (Browser Exploit Against SSL/TLS) and weak cipher support, and they have been deprecated by modern standards (e.g., PCI DSS). TLSv1.2 and TLSv1.3 are considered secure when properly configured with strong ciphers.
Option A correctly identifies SSLv2 and SSLv3 as insecure, but it omits TLSv1.0 and TLSv1.1. Option B correctly identifies TLSv1.0 and TLSv1.1 as insecure but omits SSLv2 and SSLv3. Option C ('Both A and B') encompasses all insecure protocols (SSLv2, SSLv3, TLSv1.0, and TLSv1.1), making it the most comprehensive and correct answer. Option D is incorrect because it includes TLSv1.2 and TLSv1.3, which are secure when used with modern configurations. This aligns with the CAP syllabus focus on secure communication protocols and vulnerability management.
In the screenshot below, an attacker is attempting to exploit which vulnerability?
POST /dashboard HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) rv:107.0) Gecko/20100101 Firefox/107.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Cookie: JSESSIONID=7576572ce164646de967c759643d53031
Te: trailers
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 81
xml_foo=
]>