Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Cross site scripting xss attack lab elgg

20/03/2021 Client: saad24vbs Deadline: 3 days

Cross-site scripting (XSS) Attacks

Cross-site scripting (XSS) is a type of vulnerability commonly found in web applications. This vulnerability makes it possible for attackers to inject malicious code (e.g. JavaScript programs) into victim’s web browser.

Using this malicious code, the attackers can steal the victim’s credentials, such as cookies. The access control policies (i.e., the same origin policy) employed by the browser to protect those credentials can be bypassed by exploiting the XSS vulnerability. Vulnerabilities of this kind can potentially lead to large-scale attacks.

To demonstrate what attackers can do by exploiting XSS vulnerabilities, we have set up a web application named Elgg in our pre-built Ubuntu VM image. Elgg is an open-source web application for social networking, and it has implemented a number of countermeasures to remedy the XSS threat. To demonstrate how XSS attacks work, we have commented out these countermeasures in Elgg in our installation, intentionally making Elgg vulnerable to XSS attacks. Without the countermeasures, users can post any arbitrary message, including JavaScript programs, to the user profiles. In this lab, students need to exploit this vulnerability to launch an XSS attack on the modified Elgg, in a way that is similar to what Samy Kamkar did to MySpace in 2005 through the notorious Samy worm. The ultimate goal of this attack is to spread an XSS worm among the users, such that whoever views an infected user profile will be infected, and whoever is infected will add you (i.e., the attacker) to his/her friend list.

Environment setup for the problem:

For this problem, we will assume that you have set up the Ubuntu virtual machine environment based on the instructions in the Syllabus under “Special Software Installation Requirements”.

We will need the following:

· Firefox web browser

· Apache web server

· Elgg web application

For the Firefox browser, we need to use the LiveHTTPHeaders extension for Firefox to inspect the HTTP requests and responses (available under the “Tools” menu in Firefox). The pre-built Ubuntu VM image provided to you has already installed the Firefox web browser with the required extension.

The Apache web server is also included in the pre-built Ubuntu image. However, the web server is not started by default. You have to first start the web server using one of the following two commands:

% sudo apache2ctl start

or

% sudo service apache2 start

The Elgg web application is already set up in the pre-built Ubuntu VM image. We have also created several user accounts on the Elgg server and the credentials are given below (username, password):

admin, seedelgg

alice, seedalice

boby, seedboby

charlie, seedcharlie

samy, seedsamy

You can access the Elgg server using the following URL (the Apache server needs to be started first):

http://www.xsslabelgg.com

(this URL is only accessible from inside of the virtual machine, because we have modified the /etc/hosts file to map the domain name (www.xsslabelgg.com) to the virtual machine’s local IP address 127.0.0.1).

Once you log in as a user in Elgg, you can access your Profile and list of Friends by clicking on icons in the upper left part of the browser window.

Note: Some of the project tasks require some basic familiarity with JavaScript. Wherever necessary, we provide a sample JavaScript program to help you get started.

i. Posting a Malicious Message to Display an Alert Window

The objective of this task is to embed a JavaScript program in your Elgg profile, such that when another user views your profile, the JavaScript program will be executed and an alert window will be displayed. The following JavaScript program will display an alert window:

If you embed the above JavaScript code in your Profile (e.g. in the brief description field), then any user

who views your profile will see the alert window.

What you need to do:

1. Login as user Alice and change the "Brief description" field in your Profile such that an alert window which has the following text will open:

XSS attack by

2. Logout and login as user Boby, and then select user Alice from "More => Members" in the Elgg menu.

3. Include in your project document a screen printout with this alert window.

ii. Posting a Malicious Message to Display Cookies

The objective of this task is to embed a JavaScript program in your Elgg profile, such that when another

user views your profile, the user’s cookies will be displayed in the alert window. This can be done by adding

some additional code to the JavaScript program in the previous task:

Hello Everybody,

Welcome to this message board.

When a user views this message post, he/she will see a pop-up message box that displays the cookies of the user.

What you need to do:

1. Login as user Alice and change the "Brief description" field in your Profile such that an alert window which contains the user’s cookies will open.

2. Logout and login as user Charlie, and then select user Alice from "More => Members" in the Elgg menu.

3. Include in your project document a screen printout with this alert window.

iii. Stealing Cookies from the Victim’s Machine

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Engineering Guru
Finance Master
Calculation Master
Helping Hand
Essay Writing Help
Instant Homework Helper
Writer Writer Name Offer Chat
Engineering Guru

ONLINE

Engineering Guru

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$20 Chat With Writer
Finance Master

ONLINE

Finance Master

I will cover all the points which you have mentioned in your project details.

$70 Chat With Writer
Calculation Master

ONLINE

Calculation Master

Give me a chance, i will do this with my best efforts

$37 Chat With Writer
Helping Hand

ONLINE

Helping Hand

I have read your project details. I can do this within your deadline.

$171 Chat With Writer
Essay Writing Help

ONLINE

Essay Writing Help

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$130 Chat With Writer
Instant Homework Helper

ONLINE

Instant Homework Helper

I have read your project details. I can do this within your deadline.

$143 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Pluralism Video - Astrand cycle test protocol - Prentice hall online textbook - The two heads of the biceps brachii muscle converge distally to insert on the __________. - Plastic parts produced by an injection molding operation are checked - Pure highbury student portal - Homework Assignment #1 (C++, Eclipse, C++17 Standard Complier) - Www ewre com au hobart - Successful licence suspension appeal - Firetrol fire pump controller password - Poor little faith thought he - 007d8 - Use the dichotomous key in the table to identify a gram-negative coccus. - 103 prime or composite - MC Charts - Melville's parable of the walls - 3-5 Page in APA 6th standard Organ Leadership and Decision Making - Example of a character sketch bible study - Midterm - Energy content of fuels lab report answers - Molecular weight of nicl2 - Assignment - Evaluate your style with The pelle pelle jackets! - Fast co2 dragster designs - Higher biology course specification - Number of hotmail users - 4 observations that indicate a chemical change - Setting of slumdog millionaire - Amp flexible super changes - Research Paper - Example of stimulus generalization in marketing - Capital and financial account balance - Followership vs servant leadership - Qut university wide minors - The other wes moore free essay - What does the speaker compare imagination to in the poem - Richard de crespigny interview - Fiedler's contingency leadership model assumes that - Chihuahuan desert animals adaptations - Roughness waviness and form - Npn small signal model - Womb for rent ellen goodman - Brisbane flood overlay code - Pa state police southwest training center - Order 2316287: art appreciation - E poster - What is the output of the following code segment - Research Paper - 007 legends locate sanchez's office - Neo human relations school - Bus from hk airport to shenzhen - 10- to 12-slide presentation with speaker notes due october 7th 2020 - Plato gorgias robin waterfield pdf - Grantham university lawsuit - King leopold's ghost questions and answers - In 1966, lillian gilbreth received the ________ from the american society of civil engineers. - Price is seldom used as a competitive tool - Cyber Security planning & management - Chapter 18 regulation of gene expression reading guide answers - Contrast the project plan the project charter and the wbs - I challenge the warmest advocate for reconciliation meaning - Which of the following statements is true about responsibility - Steps of fmea process ihi - Masters in public sector management - High commission bangladesh canberra - Www elgas com au order - Pnb assets for sale - Byron bay cookie company uk - Beery vmi 6th edition - Elevate Your Style with Fendi Bag Straps: A Fashion Icon Reinvented - Student discipline and due process essay - Armed forces medical services examining board - West college scotland register - Project 2 - From which other sport was racquetball derived quizlet - Project requirements risk cost paper - Fielded data - Jms stylet oil label nz - Soap note examples for nurse practitioners uti - A typical small flashlight contains two batteries - Can a pmo accelerate the implementation process discussion - Managerial analysis paper - A coil consists of 200 turns of wire - Discussion 1 and 2 ,250 words each one by 10/20/2020 at 6 :00 pm,please add references - Equilibrium constant in electrochemistry - Dfs g plan flair - Calorimetry specific heat capacity of metals lab report - University of guelph library study rooms - Disaster management - Barriers to critical thinking - Nist sp 800 34 - BOUNCY EGG EXPERIMENT - What type of innovation does the halo sport represent - Asymptomatic bacteriuria in pregnancy ranzcog - Fod prevention training videos - Fisher control valve sourcebook - The coral island sparknotes - Wgu leadership and communication reflection paper - HR Challenge: Hire From Within or Outside? - Sample persuasive speech on donating blood