Free SecOps-Group CAP Practice Test Questions and Answers (2026)
Last Update Check
Q: 1
Which of the following HTTP response header prevents the client from caching the HTTP response in
the most secure manner?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 2
In the screenshot below, an attacker is attempting to exploit which vulnerability?
POST /upload.php HTTP/1.1
Host: example.com
Cookie: session=xyz123;JSESSIONID=abc123
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) rv:107.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Length: 12345
Connection: keep-alive
Content-Disposition: form-data; name="avatar"; filename="malicious.php"
Content-Type: image/jpeg
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 3
What is the full form of SAML?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
While performing a security audit of a web application, you discovered an exposed docker-
compose.yml file. What is the significance of this file and what data can be found in it?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
A website administrator forgot to renew the TLS certificate on time and as a result, the application is now displaying a TLS error message. However, on closer inspection, it appears that the error is due to the TLS certificate expiry. Which of the following is correct?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
Scan the code below and identify the vulnerability which is the most applicable for this scenario.
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
An application’s forget password functionality is described below:
The user enters their email address and receives a message on the web page:
“If the email exists, we will email you a link to reset the password”
The user also receives an email saying:
“Please use the link below to create a new password:”
(Note that the developer has included a one-time random token with the ‘userId’ parameter in the
link). So, the link seems like:
https://example.com/reset_password?userId=5298&token=70e7803e-bf53-45e1-8a3ffb15da7de3a0
Will this mechanism prevent an attacker from resetting arbitrary users’ passwords?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
In the context of the CORS (Cross-origin resource sharing) misconfiguration, which of the following
statements is true?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
If the end-user input is not validated or sanitized, an application created using which of the following
languages or frameworks might be prone to Insecure Deserialization vulnerability?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 10
Which SQL function can be used to read the contents of a file during manual exploitation of the SQL
injection vulnerability in a MySQL database?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 11
After purchasing an item on an e-commerce website, a user can view their order details by visiting
the URL:
https://example.com/?order_id=53870
A security researcher pointed out that by manipulating the order_id value in the URL, a user can view
arbitrary orders and sensitive information associated with that order_id. There are two fixes:
(Bob’s Fix): In order to fix this vulnerability, a developer called Bob devised a fix so that the URL does
not disclose the numeric value of the order_id but uses a SHA1 hash of the order_id in the URL, such
as:
https://example.com/?order_id=1ff0fe6f1599536d1326418124a261bc98b8ea1
Note: that the SHA1 value of 53870 is 1ff0fe6f1599536d1326418124a261bc98b8ea1
(John’s Fix): Another developer called John devised a different fix so that the URL does not disclose
the numeric value of the order_id and uses a Base64 encoded value of the order_id in the URL, such
as:
https://example.com/?order_id=NTM4NzA=
Note: that the Base64 encoded value of 53870 is NTM4NzA=
Which of the following is correct?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 12
Observe the HTTP request below and identify the vulnerability attempted.
GET /help.php?file=../../../etc/passwd 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=38RB5ECV10785B53AF29816E92E2E50
Te: trailers
Connection: keep-alive
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 13
In the context of NoSQL injection, which of the following is correct?
Statement A: NoSQL databases provide looser consistency restrictions than traditional SQL
databases. By requiring fewer relational constraints and consistency checks, NoSQL databases often
offer performance and scaling benefits. Yet these databases are still potentially vulnerable to
injection attacks, even if they aren’t using the traditional SQL syntax.
Statement B: NoSQL database calls are written in the application’s programming language, a custom
API call, or formatted according to a common convention (such as XML, JSON, LINQ, etc).
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 14
Null Byte Injection is an active exploitation technique used to bypass sanity-checking filters in web
applications by adding a URL-encoded null byte character to the user-supplied dat
a. Which of the following is a URL-encoded representation of a null byte?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 15
In the screenshot below, which of the following is incorrect?
Target: https://example.com
HTTP/1.1 404 Not Found
Date: Fri, 09 Dec 2022 18:03:49 GMT
Server: Apache
Vary: Cookie
X-Powered-By: PHP/5.4.5-5
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Cookie: JSESSIONID=1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789; secure; HttpOnly;
SameSite=None
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 15