Home > Articles > Cisco > CCNA Security

Exploring Common Web Server Attacks

Many of the common security certifications require a basic understanding of different types of attacks. This article describes provides some basics on attacks including denial of service (DoS), distributed DoS (DDoS) attacks, SYN flood, ping flood, port scan, sniffing attacks, and social engineering attacks.
Like this article? We recommend

Like this article? We recommend

Systems are constantly being attacked, and IT security professionals need to be aware of common attacks so that they know what to protect against. Many of the common security certifications (such as the CompTIA Security+, and (ISC)2 SSCP and CISSP) require you to have a basic knowledge of different types of attacks. After all, before you can start focusing on protection against threats, you need to know what the threats are.

DoS and DDoS

A denial of service (DoS) attack is an attack from a single entity that attempts to prevent a system from responding to normal requests for service. A distributed denial of service (DDoS) attack is a DoS attack from multiple entities. When successful, the attacked system is unable to respond to the majority of legitimate service requests. The SYN flood attack (described later in this article) is a common DoS attack.

Systems accessible via the Internet are the primary targets of DoS and DDoS attacks. For example, attackers may want to disrupt a company’s ecommerce business, so they attack the company’s web servers. If they are successful, the company loses direct revenue during the attack. They also see indirect losses as customers become disillusioned with the company’s security or availability and shop elsewhere. Some attackers launch DDoS attacks on systems as a diversion as they are accessing other systems to steal data.

SYN Flood

One of the classic DoS attacks is the SYN flood attack, which disrupts the TCP three-way handshake. To understand the attack, it’s best to first understand how the TCP handshake works. TCP provides guaranteed delivery of information, and it starts by ensuring that a session can be established between two systems.

TCP uses flags embedded within packets as descriptors for the packet. The SYN (synchronize) flag requests a session, the SYN/ACK (synchronize and acknowledge) flags acknowledge the request, and the ACK (acknowledge) flag establishes the session. Figure 1 shows the overall process of the TCP handshake as these three packets are sent between two systems. This three-way handshake is used between systems on internal networks and on the Internet all the time.

Figure 1 TCP three-way handshake

The SYN flood attack withholds the third packet, preventing sessions from being completed. This attack is also called a half-open connection attack, since the session is incomplete. Imagine someone extending his hand to shake with you. You extend your hand and then at the last instant, they pull their hand away. If they did it repeatedly, you probably wouldn’t continue to extend your hand in return.

However, a computer system isn’t so smart. In the SYN flood attack, the attacker floods a system with SYN packets, as shown in Figure 2, and each time the computer receives a SYN packet, it responds with a SYN/ACK packet.

Figure 2 SYN flood attack

Not only does the server send back the SYN/ACK packet, but it also keeps sessions open waiting for the incomplete sessions to be completed. If a server is flooded with multiple SYN packets it can overwhelm the server and in some instances, it can cause a server to crash. If a system limits how many incomplete sessions it allows (such as ten every three minutes), this prevents new legitimate connections.

A single attacker can launch a SYN flood attack as a DoS attack on a system. Bot herders can also direct zombies within a botnet to launch individual SYN flood attacks resulting in massive DDoS attacks on systems.

Many firewalls include floodguards that help mitigate the effects of a SYN flood attack.

Ping Flood

A ping flood attack provides a simple example of a DDoS attack. Bot herders can direct zombies within a botnet to send simple ping requests to a system. When a system receives a ping request, it responds with a ping reply. If thousands of zombies flood a system with pings, the system can get overwhelmed as it tries to respond to these requests.

One common method of combating a ping flood attack is to block ICMP traffic. Since the ping uses ICMP, a system ignores these attacks by blocking ICMP. This follows a basic server hardening principle of disabling or removing unneeded services. In this case, a company may determine that ICMP is not necessary for the function of a server, and they block it using a firewall filter.

In other networks, active intrusion detection systems and intrusion prevention systems (IDSs and IPSs) allow ICMP traffic but set a threshold (such as no more than 10 pings in 20 seconds). Once the threshold is reached, the IDS/IPS disables ICMP for a period (such as 30 minutes). This prevents attacks from ever gaining any traction.

Port Scan

A port scan attempts to discover running services on a system based on the open ports. Since most systems follow the well-known port recommendations of IANA, any well-known ports that are open provide a good indication of services running on the system.

For example, if a port scan determines that a system is listening on ports 80 and 443, it’s very likely that this system is running the HTTP and HTTPS protocols. Since web servers primarily use these protocols, it’s very likely this system is a web server. Other techniques (such as packet sniffing) determine the operating system and type of web server software a system is running.

Many tools are available that an attacker can use to scan a system for open ports. Many tools allow attacks to program the scan to look for specific open ports. For example, if attackers want to locate mail servers, they can program these tools to scan for ports 25, 110, and 143 (the ports for SMTP, POP3, and IMAP4).

Sniffing Attacks

Attackers use sniffers or protocol analyzers to capture and analyze packets. If data is sent across a network in clear text, an attacker can capture the data packets and use a sniffer to read the data. In other words, a sniffer can eavesdrop on electronic conversations. A popular sniffer is Wireshark, and it’s available as a free download. It’s also used by administrators for legitimate purposes.

One of the challenges for an attacker is to gain access to the network to capture the data. If attackers have physical access to a router or switch, they can connect the sniffer and capture all traffic going through the system. Strong physical security measures help mitigate this risk.

Wireless sniffers such as Kismet can capture traffic transmitted over the air. The best protection is strong wireless security, such as WPA2.

Social Engineering Attacks

The simplest attacks are social engineering attacks, where an attacker simply asks unsuspecting users for their secrets. For example, an attacker can leave a message on a user’s phone and claim that their credit card has had some suspicious activity and encourage the person to call back. When the person calls back, they are prompted to enter credit card information such as the number, expiration, and the secret code. The message lets the person know that based on their confirmation, the credit card is verified and there’s no problem. However, the person just gave all their credit card information, and the card will soon have several fraudulent charges.

Tailgating is another social engineering example. An attacker without a required access card can access secured spaces simply by following closely behind someone with an access card. Sometimes all they need is a friendly smile to take advantage of someone else’s courtesy.

While social engineering was previously limited to nontechnical means (such as just talking), some social engineering attacks use technical methods today. For example, phishing emails attempt to trick a user into responding and giving up valuable information such as their username and password, or clicking on a malicious link that can install malware on their system in a drive-by attack.

Many social engineers use pretexts to trick their victims. For example, an attacker may want to send a phishing email to an executive in a whaling attack. (A whaling attack is a phishing email against a high-level executive.) The attacker could learn the executive’s name through public information, but not know the executive’s email address. In the first pretext, the attacker calls up a company employee posing as a customer and obtains an employee’s email address. This helps the attacker determine how email addresses are formatted (such as first.last@company.com). In a follow-on pretext, the attacker calls someone else posing as a business associate of the executive. The attacker explains he needs to email important information to the executive, but he seems to have written down the email incorrectly. After repeating the email address with a minor misspelling, a helpful employee may provide the correct email information without giving it a second thought.

Conclusion

If you’re preparing for a security based certification exam, you should have a good understanding of basic attacks. While this article doesn’t them all, it does cover many. Good luck!

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Pearson IT Certification products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.pearsonitcertification.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020