-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolving merge conflicts with S2/L3
- Loading branch information
Showing
7 changed files
with
97 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Simulate an attack by following these steps: | ||
|
||
1. Start the application as instructed in 'code.py' | ||
2. Enter the following in the planet input field: | ||
<img src='x' onerror='alert(1)'> | ||
|
||
The application should return a message stating that such a | ||
planet is unknown to the system, without showing an alert box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
How does the site handle user input before displaying it? | ||
How does the site handle user input before and after displaying it? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Planet Details</title> | ||
<style> | ||
body { | ||
font-family: Arial, Helvetica, sans-serif; | ||
background-color: #121212; | ||
color: #ffffff; | ||
} | ||
|
||
h2 { | ||
text-align: center; | ||
margin-top: 30px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<h2>Planet Details</h2> | ||
<p>Planet name: <span id="name">{{ planet | safe }}</span></p> | ||
<p>Planet info: {{ info | safe }}</p> | ||
<br/> | ||
<p>Search in Google for more information about the planet: <span id="planet"/></p> | ||
<script> | ||
document.getElementById("planet").innerHTML = document.getElementById("name").textContent; | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters