1.

An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user in order to gain potentially sensitive information. This attack is known as __________(a) session-fixation(b) session-fixing(c) session-hijack(d) session-copyI got this question in final exam.Asked question is from Session Handling-2 topic in chapter File and Session Handling in PHP of PHP

Answer»

The correct option is (a) SESSION-fixation

To explain I WOULD say: The attack session fixation attempts to exploit the vulnerability of a system that allows one person to set another person’s session IDENTIFIER. You can minimize this risk by regenerating the session ID on each request while maintaining the session-specific data. PHP offers a convenient FUNCTION named session_regenerate_id() that will replace the existing ID with a new one.



Discussion

No Comment Found

Related InterviewSolutions