Web Server and its Types of Attacks (original) (raw)

Last Updated : 11 Apr, 2026

Malicious attempt to compromise the security of a web-based application or server infrastructure, targeting the application to steal sensitive data, disrupt services, or gain unauthorized control, and potentially using the compromised server as a platform for launching attacks against other users and systems.

Types of Attacks

1. Denial-of-Service (DoS) and Distributed Denial-of-Service (DDoS)

Attackers overwhelm web servers with massive amounts of requests, causing them to slow down significantly or crash completely. This prevents legitimate users from accessing the service.

**Common Targets: Government services, financial institutions, large corporations, and e-commerce platforms.

**Prevention Measures:

2. Web Defacement Attack

Attackers gain unauthorized access to web servers and replace legitimate website content with their own messages, images, or propaganda. This is often done to humiliate organizations, spread political messages, or demonstrate security weaknesses.

**Prevention Measures:

3. SSH Brute Force Attack

Attackers systematically attempt numerous username and password combinations to gain SSH (Secure Shell) access to the server. Once successful, they can upload malicious files, steal data, or take complete control of the system.

**Prevention Measures:

**4. CROSS SITE SCRIPTING (XSS):

This type of attack is more likely to target websites with scripting flaws. The injection of malicious code into web applications is known as Cross-Site Scripting. The script will give the hacker access to web app data such as sessions, cookies, and so on.

3-4

Cross Site Scripting (XSS)

**Prevention Measures:

5. Directory Traversal (Path Traversal)

Attackers exploit vulnerabilities to access files and directories outside the web server's root directory. This can expose sensitive configuration files, database credentials, system files, or other confidential information.

**Prevention Measures:

6. DNS Server Hijacking (DNS Redirection)

**Description: Attackers manipulate DNS records or responses to redirect users from legitimate domains to malicious websites controlled by the attacker. Users believe they're accessing genuine sites while actually communicating with fraudulent servers.

**Prevention Measures:

7. Man-in-the-Middle (MITM) Attack

Man-in-the-Middle (MITM) attack allows the attacker to access sensitive information by blocking and modifying the connection between the end-user and web servers. In MITM attacks or smells, the hacker captures or corrects modified messages between the user and the web server by listening or intervening in the connection.

file

Man-in-the-Middle (MITM) attack

**Prevention Measures:

8. HTTP Response Splitting Attack

Attackers manipulate HTTP responses by injecting malicious data into HTTP headers. This protocol manipulation can lead to cache poisoning, cross-site scripting, or other attacks. Applications that use HTTP to exchange data are vulnerable, even when using HTTPS.

**Prevention Measures:

Advantages

Disadvantages