EC-Council
EC0-350 · Question #156
The GET method should never be used when sensitive data such as credit card is being sent to a CGI program. This is because any GET command will appear in the URL, and will be logged by any servers…
The correct answer is C. Replace the GET with POST method when sending data. See the full explanation below for the reasoning.
Question
The GET method should never be used when sensitive data such as credit card is being sent to a CGI program. This is because any GET command will appear in the URL, and will be logged by any servers. For example, let's say that you've entered your credit card information into a form that uses the GET method. The URL may appear like this:
The GET method appends the credit card number to the URL. This means that anyone with access to a server log will be able to obtain this information. How would you protect from this type of attack?
Options
- ANever include sensitive information in a script
- BUse HTTPS SSLv3 to send the data instead of plain HTTPS
- CReplace the GET with POST method when sending data
- DEncrypt the data before you send using GET method
How the community answered
(39 responses)- A8% (3)
- B5% (2)
- C85% (33)
- D3% (1)
Community Discussion
No community discussion yet for this question.