Skip to content

Instantly share code, notes, and snippets.

@shauns
Created November 22, 2016 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shauns/1250f975fb03b33377d516e2086fe2d6 to your computer and use it in GitHub Desktop.
Save shauns/1250f975fb03b33377d516e2086fe2d6 to your computer and use it in GitHub Desktop.
Bad login page (uses GET)
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Insecure Login</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="page-header">
<h1>Log in to GlobalTech <small></small></h1>
</div>
<h3>Welcome to GlobalTech Online!</h3>
</div>
</div>
<div class="row">
<div class="col-sm-7">
<p>We're the number one company when it comes to forgetting to secure your data.</p>
<p>Just log in using your details and we'll make sure they're used for nefarious purposes as soon as we possibly can.</p>
<div class="alert alert-danger">
<p><em><strong>Note: </strong>This is a demo site for teaching purposes.</em>
</p>
</div>
</div>
<div class="col-sm-5">
<form action="." method="get">
<div class="form-group">
<label for="username">Username</label>
<input type="text" class="form-control" name="username" id="username" placeholder="Username">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" name="password" id="password" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</body>
</html>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment