-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
40 lines (28 loc) · 974 Bytes
/
profile.php
File metadata and controls
40 lines (28 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
include './includes/functions.inc';
session_start();
$user = $_SESSION["username"];
$userData = getUserData($user);
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/base-min.css">
<meta charset="UTF-8">
<title>Vulnerable Webapp | Profile</title>
</head>
<body style="padding: 45px; max-width: 500px;">
<h1>Your data, <?php print $user ?></h1>
<p>
<address>
<?php print $userData["username"] . "<br />" . $userData["email"]; ?>
</address>
<a href="deleteUser.php" onclick="return confirm('Oh really ?')">Delete Account</a>
</p>
</body>
</html>