Question 1. Analysis of Protocols with Wireshark
For this question you must use virtnet (as used in the workshops) to study Internet applications with Wireshark. This assumes you have already setup and are familiar with virtnet. See Moodle and workshop instructions for information on setting up and using virtnet, deploying the website, and performing the attack.
Your task is to:
- Create topology 5 in virtnet where:
- node1 will be referred to as the client
- node2 will be the router o node3 will be the server
- Start capturing packets using tcpdump on the router (node2)
- While capturing, perform the following operations in order:
- Start netcat TCP server using assigned port on the server (node3)
- Start netcat TCP client on the client (node1)
- On the client (node1) type: COIT20262 Assignment 1 My ID is
- On the server (node3) type: Hello . I am the server.
- On the client (node1) type: Goodbye server. You need to perform steps 3-5 in the correct sequence, switching from client to server to client.
- Stop the capture and save the file as netcat.pcap Server port numbers must be assigned based on the last three (3) digits of your student ID, xyz, as defined below. Examples are given for a student ID of 12345678.
- For netcat TCP server use port 6xyz. Example port: 6678
- After performing and understanding the above steps, answer the following sub-questions
- Submit your capture file as netcat.pcap on Moodle. The single file must contain all packets of the TCP exchange using your assigned port and using your ID and name. [3 marks]
- Draw a message sequence diagram that illustrates all the TCP packets generated by using netcat (do not draw any packets generated by other applications or protocols, such as ARP, DNS or SSH). A message sequence diagram uses vertical lines to represent events that happen at a computer over time (time is increasing as the line goes down). Addresses of the computers/software are given at the top of the vertical lines. Horizontal or sloped arrows are used to show messages (packets) being sent between computers. Each arrow should be labelled with the protocol, packet type and important information of the message. Examples of message sequence diagrams are given in workshops. Note that you do not need to show the packet times, and the diagram does not have to be to scale. [3 marks]
- Based on your capture only, identify the following information, and give the packet that the information is found in. If the information is found in multiple packets, give the first packet from the capture. For example, if the information is found in packet numbers 3, 5 and 7, you would give the packet as 3. [4 marks]
- Before performing the attack, add two new student users to the database with the following details:
- New student 1: username is your ID, password is your ID b. New student 2: username is 12037777, password is a hacker
- For both of the new students add the following courses and grades:
- New student 1: coit20262, D b. New student 1: coit20263, C c. New student 2: coit20262, HD d. New student 2: coit20263, F
- Perform the SQL injection attack as new student 2, i.e. logged in as 12037777
- Take a screenshot of the attacker web browser showing the form the attacker uses to perform the attack. Make sure the screenshot clearly shows the fields/data entered by the attacker. Save the screenshot as screenshot-attack.png.
- Take a screenshot of the attacker web browser showing a successful attack, i.e. the grades of other students. Save the screenshot as screenshot-success.png.
- Give a general explanation of an SQL injection attack. (This explanation should NOT reference the attack you performed in virtnet; it should be for any SQL injection attack). [1 marks]
- Explain two general approaches that can be used to avoid or minimise SQL injection attacks. (This explanation should NOT reference the attack you performed in virtnet; it should be for any SQL injection attack). [2 marks] For this specific attack on www.myuni.edu:
- Explain the limitation/weakness in the MyUni website that allowed the SQL injection attack to be successful. In your explanation refer to the file(s) and line(s) of code, and give samples of the code in your answer. [2 marks]
- Explain what the attacker, 12037777, had to do in their web browser to perform the attack. In your explanation include the screenshot screenshot-attack.png and refer to the information shown in that screenshot. [2 marks]
- Submit your screenshot screenshot-attack.png as a separate file. That is, you must both embed the screenshot in the report AND submit the file separately. The reason for this is that it makes it easier for the marker in reading the report to have an embedded image, but sometimes the quality is hard to read (hence the additional file submission). [1 mark]
- Explain what the attacker, 12037777, could learn or gain from performing the SQL injection attack. In your explanation include the screenshot screenshot-success.png and refer to the information shown in that screenshot. [1 mark]
- Submit your screenshot screenshot-success.png as a separate file. [1 mark]
- Explain what the website developer could do to prevent this SQL injection attack. In your explanation, give exact code or steps the developer should use. [2 marks]
- Explain the weaknesses of the above algorithm if the first input block is identical to the key. [3.5 marks]
- Give a modified algorithm that corrects the problem(s) identified in part (a).
- As a network security analyst, why is it important that you have knowledge of AI- based network attacks? [1]
- Select three examples of AI-based network attacks and describe them. [3]
- What are the defensive strategies you can take to prevent any two of the these attacks?
The post Analysis of Protocols with Wireshark appeared first on My Assignment Online.