ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalITEC3111Network Attacks Sessio…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    ITEC3111

    Web Engineering

    Progress0 / 24 done
    Topics24
    1Web programming languages (HTML5, CSS3, JavaScript, PHP/JSP/ASP.Net)2HTML53CSS34JavaScript5PHP6JSP7ASP.Net8Design principles of Web based applications9Web platform constraints10Software as a Service (SaaS)11Web standards12Responsive Web Design13Web Applications14Browser/Server Communication15Storage Tier16Cookies and Sessions17Input Validation18Full stack state management19Web App Security - Browser Isolation20Network Attacks and Session Attacks21Large scale applications22Performance of Web Applications23Data Centers24Web Testing and Web Maintenance
    4 min read
    Topic 20 of 24
    Topic Study Note Illustration
    20

    Network Attacks and Session Attacks

    Network attacks are malicious activities performed over a network to intercept, disrupt, or modify data communication between a client and server.

    🌐 Network Attacks and Session Attacks (Web Engineering)


    πŸ“Œ 1. Definition

    🌐 Network Attacks

    Network attacks are malicious activities performed over a network to intercept, disrupt, or modify data communication between a client and server.

    πŸ” Session Attacks

    Session attacks are attacks that target a user’s session information (Session ID, cookies, tokens) to hijack or impersonate a legitimate user.


    🌐 2. Network Attacks


    🧠 2.1 Overview

    Network attacks target the communication channel between:

    • Browser (client)
    • Server

    ⚠️ 2.2 Types of Network Attacks


    1. πŸ•΅οΈβ€β™‚οΈ Man-in-the-Middle (MITM) Attack

    πŸ“Œ Definition

    An attacker secretly intercepts communication between two parties.

    πŸ”‘ How it works:

    • Attacker sits between user and server
    • Reads or modifies data

    πŸ“ˆ Example:

    • Stealing login credentials on public Wi-Fi

    2. πŸ“‘ Packet Sniffing

    πŸ“Œ Definition

    Capturing data packets traveling over a network.

    πŸ”‘ Example tools:

    • Wireshark (used for analysis, but can be misused)

    3. πŸ” Replay Attack

    πŸ“Œ Definition

    Attacker re-sends valid data packets to repeat unauthorized actions.

    πŸ“ˆ Example:

    • Reusing login request packets

    4. 🌊 Denial of Service (DoS/DDoS)

    πŸ“Œ Definition

    Overloading a server with traffic to make it unavailable.

    πŸ”‘ Types:

    • DoS β†’ single source
    • DDoS β†’ multiple sources

    5. 🧨 DNS Spoofing

    πŸ“Œ Definition

    Redirecting users to a fake website by modifying DNS records.


    πŸ” 3. Session Attacks


    🧠 3.1 Overview

    Session attacks target the session management system used in web applications.

    πŸ‘‰ Sessions are used to maintain user login state.


    ⚠️ 3.2 Types of Session Attacks


    1. πŸͺ Session Hijacking

    πŸ“Œ Definition

    Stealing a user's session ID to gain unauthorized access.

    πŸ”‘ Example:

    • Attacker logs into victim’s account without password

    2. 🎯 Session Fixation

    πŸ“Œ Definition

    Attacker forces a user to use a predefined session ID.

    πŸ”‘ Process:

    1. Attacker sets session ID
    2. User logs in using that session
    3. Attacker reuses session

    3. πŸ•΅οΈ Session Sniffing

    πŸ“Œ Definition

    Intercepting session cookies using insecure networks.


    4. πŸ’£ Cross-Site Request Forgery (CSRF)

    πŸ“Œ Definition

    Forcing a logged-in user to perform unauthorized actions.

    πŸ“ˆ Example:

    • Transferring money without user consent

    πŸ“Š 4. Network vs Session Attacks

    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

    🧩 5. Attack Flow Diagram

    User β†’ Network β†’ Server
          β†˜ Attacker intercepts ↙
       (Data / Session Theft)
    

    πŸ›‘οΈ 6. Prevention Techniques


    πŸ” For Network Attacks

    βœ” Use HTTPS (SSL/TLS encryption) βœ” Firewalls and intrusion detection systems βœ” Secure Wi-Fi networks βœ” Encryption of data packets


    πŸ” For Session Attacks

    βœ” Use strong session IDs βœ” Session expiration (timeout) βœ” Regenerate session ID after login βœ” Use secure cookies (HttpOnly, Secure) βœ” Implement CSRF tokens


    πŸ“ˆ 7. Importance in Web Security

    • Protects user data
    • Prevents unauthorized access
    • Ensures secure communication
    • Maintains trust in web applications

    ⚠️ 8. Important Exam Points

    βœ” Network attacks target data transmission βœ” Session attacks target user authentication state βœ” HTTPS reduces network attacks βœ” Secure session management reduces session attacks


    ❓ 9. Likely Exam Questions

    Short Questions

    1. Define network attacks.
    2. What is session hijacking?
    3. What is MITM attack?
    4. Define CSRF.
    5. Difference between network and session attacks.

    Long Questions

    1. Explain types of network attacks.
    2. Discuss session attacks in web applications.
    3. Explain session hijacking and session fixation.
    4. Describe prevention techniques for web attacks.
    5. Explain network and session attacks with examples.

    πŸ“ 10. Summary / Quick Revision

    • Network attacks β†’ target communication (MITM, DoS, sniffing)

    • Session attacks β†’ target user sessions (hijacking, fixation, CSRF)

    • Prevention:

      • HTTPS
      • Secure cookies
      • Session management
      • Encryption

    πŸ‘‰ In short: Network attacks break communication security, while session attacks break user authentication security.


    ← Previous topic 19
    Web App Security - Browser Isolation
    Next topic 21 β†’
    Large scale applications

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    4mremaining
    598words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Web Engineering