Web Security
CSRF(Cross site request forgery) Attacker crafts a request to a website that the victim has access to. Victim is tricked to submit the request which he doesn't intend to. Victim tricked to changing his personal information with attackers mobile/email. How To Fix: This attack can be protected by including csrf token in web forms which keeps changing for every request and every user. Referrer header is another option. Session fixation Attacker creates a session by accessing a malicious site. Persuades victim to login to the site with the same session id. Attacker uses the same session and impersonate victim How To Fix: This attack can be prevented by creating a new session whenever user logs in. HSTS(HTTP Strict transport security) If the https protocol is omitted in the url, victim will be allowed to access the un-secured site. Since, the communication is not secured via http, victim will potentially be vulnerable to man in the middle attacks. Attacker can view the netw...