Web Requests - HTTPS Flashcards

1
Q

What is the main drawback of HTTP?

A

All data is transferred in clear-text, making it vulnerable to Man-in-the-middle (MiTM) attacks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What protocol was created to counter the drawbacks of HTTP?

A

HTTPS (HTTP Secure)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does HTTPS protect data during transmission?

A

All communications are transferred in an encrypted format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What can be seen in an HTTP login request?

A

Login credentials in clear-text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does an intercepted HTTPS request look like?

A

Data is transferred as a single encrypted stream.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can websites that enforce HTTPS be identified?

A

Through ‘https://’ in their URL and a lock icon in the address bar.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a potential risk even when using HTTPS?

A

The request may still reveal the visited URL if it contacted a clear-text DNS server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is recommended to ensure all traffic is properly encrypted?

A

Utilize encrypted DNS servers or a VPN service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens if you type ‘http://’ instead of ‘https://’ to visit a secure website?

A

The browser attempts to resolve the domain and redirects to port 443 for HTTPS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What response code is used to redirect from HTTP to HTTPS?

A

301 Moved Permanently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the first packet sent by the client in the HTTPS flow?

A

‘client hello’ packet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the server reply with after the ‘client hello’ packet?

A

‘server hello’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is exchanged during the key exchange in HTTPS?

A

SSL certificates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a potential attack that can downgrade HTTPS to HTTP?

A

HTTP downgrade attack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does cURL handle HTTPS communication?

A

It automatically performs a secure handshake and encrypts/decrypts data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens when cURL encounters an invalid SSL certificate?

A

It does not proceed with the communication by default.

17
Q

What flag can be used with cURL to skip the SSL certificate check?

18
Q

True or False: Modern web browsers will warn users against visiting websites with invalid SSL certificates.