
Network attacks are malicious activities performed over a network to intercept, disrupt, or modify data communication between a client and server.
Network attacks are malicious activities performed over a network to intercept, disrupt, or modify data communication between a client and server.
Session attacks are attacks that target a userβs session information (Session ID, cookies, tokens) to hijack or impersonate a legitimate user.
Network attacks target the communication channel between:
An attacker secretly intercepts communication between two parties.
Capturing data packets traveling over a network.
Attacker re-sends valid data packets to repeat unauthorized actions.
Overloading a server with traffic to make it unavailable.
Redirecting users to a fake website by modifying DNS records.
Session attacks target the session management system used in web applications.
π Sessions are used to maintain user login state.
Stealing a user's session ID to gain unauthorized access.
Attacker forces a user to use a predefined session ID.
Intercepting session cookies using insecure networks.
Forcing a logged-in user to perform unauthorized actions.
| Feature | Network Attacks π | Session Attacks π |
|---|---|---|
| Target | Communication channel | User session data |
| Focus | Data transfer | Authentication |
| Example | MITM, DoS | Hijacking, CSRF |
| Level | Network layer | Application layer |
User β Network β Server
β Attacker intercepts β
(Data / Session Theft)
β Use HTTPS (SSL/TLS encryption) β Firewalls and intrusion detection systems β Secure Wi-Fi networks β Encryption of data packets
β Use strong session IDs
β Session expiration (timeout)
β Regenerate session ID after login
β Use secure cookies (HttpOnly, Secure)
β Implement CSRF tokens
β Network attacks target data transmission β Session attacks target user authentication state β HTTPS reduces network attacks β Secure session management reduces session attacks
Network attacks β target communication (MITM, DoS, sniffing)
Session attacks β target user sessions (hijacking, fixation, CSRF)
Prevention:
π In short: Network attacks break communication security, while session attacks break user authentication security.
Open this section to view and download past papers
Click on Show Past Papers to load available exam papers.