exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 31 discussion

Actual exam question from CompTIA's CAS-004
Question #: 31
Topic #: 1
[All CAS-004 Questions]

A developer is creating a new mobile application for a company. The application uses REST API and TLS 1.2 to communicate securely with the external back-end server. Due to this configuration, the company is concerned about HTTPS interception attacks.
Which of the following would be the BEST solution against this type of attack?

  • A. Cookies
  • B. Wildcard certificates
  • C. HSTS
  • D. Certificate pinning
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
YUYUY
Highly Voted 8 months ago
Selected Answer: D
The answer is D. Cert Pinning. If we are trying to defend against HTTPS interception and we are already using HTTPS (TLS1.2) why would we want HSTS? All HSTS does is enforce the use of HTTPS. This would be great to defend against attacks like Cert Downgrading, but not HTTPS interception attacks. These attacks are designed to work against HTTPS, what would ensure we use HTTPS do for us in this case? Both HSTS and Cert Pinning are security controls! But HSTS ensures HTTPS while Cert pinning enhances HTTPS.
upvoted 6 times
...
saucehozz
Most Recent 8 months ago
Selected Answer: D
"How it works Pinning allows for a trusted copy of a certificate or public key to be associated with a server and thus reducing the likelihood of frequently visited sites being subjected to man-in-the-middle attacks. Certificates or public keys can be pinned after a trusted connection has been established or the pinning can be preloaded in an application, which is the preferred method for mobile applications." https://d3fend.mitre.org/technique/d3f:CertificatePinning/
upvoted 3 times
...
cyspec
10 months, 3 weeks ago
Selected Answer: C
According to Jason Dion, certificate pinning "is no longer considered secure and should not be used".
upvoted 3 times
...
cyspec
10 months, 3 weeks ago
Selected Answer: D
The key words here are "mobile application". This is not a browser and app can be configured by the company.
upvoted 1 times
cyspec
10 months, 3 weeks ago
It would appear that Jason Dion would disagree with this answer. The reason is simple, certificate pinning "is no longer considered secure and should not be used".
upvoted 1 times
...
...
Bright07
11 months, 3 weeks ago
HSTS is the HTTP Strict Transport Security web security policy and this is going to be used to protect your website against protocol downgrade attacks and cookie hijacking. It going to allow web servers to declare that web browsers or other compliant user agents should only interact with that server using secure HTTPS connections and never through insecure HTTP protocols. Certificate Pinning or Public Key Pinning is a security mechanism which allows HTTPS website to resist impersonation by attackers using miss-issued or otherwise fraudulent certificates. So with this illustration, Option D is the answer to the question.
upvoted 1 times
...
rice3cooker
1 year, 8 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
BiteSize
1 year, 10 months ago
Selected Answer: D
Source: Verifying each answer against Chat GPT, my experience, other test banks, a written book, and weighing in the discussion from all users to create a 100% accurate guide for myself before I take the exam. (It isn't easy because of the time needed, but it is doing my diligence)
upvoted 2 times
...
javier051977
2 years, 1 month ago
Selected Answer: D
Correct Answer is D. "Organizations that have performed a risk assessment and determined that HTTPS inspection is a requirement should ensure their HTTPS inspection products are performing correct transport layer security (TLS) certificate validation. " you can read full article: https://www.cisa.gov/news-events/alerts/2017/03/16/https-interception-weakens-tls-security certificate pinning, would be the BEST solution against HTTPS interception attacks in this scenario.
upvoted 2 times
...
margomi86
2 years, 1 month ago
Selected Answer: D
The BEST solution against HTTPS interception attacks is certificate pinning. Certificate pinning is a technique where the client application hardcodes the server's certificate or public key to ensure that only that certificate or key is trusted. This means that if an attacker tries to intercept the traffic and replace the certificate with a different one, the client will detect the difference and refuse to communicate with the attacker's server. Option A (cookies) and Option B (wildcard certificates) are not related to HTTPS interception attacks. Option C (HSTS) is a security feature that forces the client to always communicate with the server over HTTPS, but it does not prevent HTTPS interception attacks. Therefore, Option D (certificate pinning) is the correct answer.
upvoted 2 times
...
ito4862
2 years, 5 months ago
Selected Answer: D
Question states they are already using HTTPS, so HSTS doesn't really help. Certificate pinning is used to prevent attacks from intercepting. https://expeditedsecurity.com/blog/what-is-certificate-pinning/
upvoted 2 times
...
kycugu
2 years, 5 months ago
First: HSTS stands for HTTP Strict Transport Security, it's a web security policy mechanism that forces web browsers to interact with websites only via secure HTTPS connections (and never HTTP second: Certificate pinning is an online application security technique, originally devised as a means of thwarting man-in-the-middle attacks (MITM), that accepts only authorized (“pinned”) certificates for authentication of client-server connections correct answer is C, Certificate pinning
upvoted 2 times
...
david124
2 years, 7 months ago
Selected Answer: C
C, because HTST will enforce using HTTPS
upvoted 2 times
...
ts260
2 years, 8 months ago
C, HSTS Cert pinning is deprecated
upvoted 3 times
...
emaney
2 years, 11 months ago
The answer is C https://https.cio.gov/hsts/
upvoted 1 times
...
am2005
3 years, 3 months ago
answer is C
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...