Шукаєте відповіді та рішення тестів для Web Security (LTAT.04.018)? Перегляньте нашу велику колекцію перевірених відповідей для Web Security (LTAT.04.018) в moodle.ut.ee.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Please implement a web application in PHP that meets the following requirements:
.php file.POST request should be submitted to the application, containing the entered username and password. [0.5p]alert() message should be shown to the user. [1.5p]$_POST, session_start().)__Host- prefix. [1p](Tip: use session_name() and session_set_cookie_params().)action=logout. The application must then delete the session cookie (using the Set-Cookie header) and redirect the user (using the Location header) back to the login form. [1.5p](Tip: use isset(), $_GET, setcookie() and header().)405 and a message in the response body indicating that only GET and POST are supported. [0.5p](Tip: use $_SERVER["REQUEST_METHOD"] and http_response_code().)Please submit the link to your deployed PHP website and the source code of your .php file below.
Paste a curl one-liner below that can be used to test how your web application rejects HTTP requests that are not GET or POST.The one-liner should demonstrate (1) that a 405 Method Not Allowed status code is returned, and (2) display the error message in the HTTP response body.
On the websec.ee server, where is PHP session data stored?Is it stored securely so that other users on the shared hosting environment cannot access it?Please upload a screenshot as evidence to support your answer.
How should the vulnerable website https://websec.ee/web/theme/ be fixed to prevent this type of attack?Describe below which two lines in the website's client-side code need to be modified, and explain how they should be changed to make the website secure.
What attack is possible if a cookie does not have the Domain attribute set but its name does not start with the __Host- prefix?
The website https://www.example.com/ sets a cookie as shown below:
Set-Cookie: session-id=12345; Domain=www.example.com; Path=/; Secure;Which of the websites listed below will be able to receive this cookie?
The website https://websec.ee/web/theme/ allows users to switch between light and dark themes.The user's choice is stored in a cookie and reused on subsequent visits.For this assignment, create a malicious webpage on your *.websec.ee domain that, when visited, forces the dark theme on https://websec.ee/web/theme/ by performing a cookie tossing attack.Please submit the link to your malicious webpage below.
Which of the websites listed in the previous question will be able to inject the cookie?
What attack is possible if a cookie has the Secure attribute set but its name does not start with the __Secure- prefix?
A session identifier included in an authentication cookie must contain a unique value to identify the corresponding browser session.Why should it be generated as a random number instead of using an incremental number to ensure uniqueness?How would you attack a website that uses an incremental session ID?