2020-08-19 14:18:50 +00:00
|
|
|
id: put-method-enabled
|
2020-08-19 12:17:24 +00:00
|
|
|
|
|
|
|
info:
|
2020-08-19 14:18:50 +00:00
|
|
|
name: PUT method enabled
|
2020-08-19 12:17:24 +00:00
|
|
|
author: xElkomy
|
|
|
|
severity: high
|
2021-03-12 08:57:14 +00:00
|
|
|
reference: https://portswigger.net/kb/issues/00100900_http-put-method-is-enabled
|
2021-09-30 16:52:05 +00:00
|
|
|
description: The PUT method is enabled on the web server, allowing for arbitrary file uploads.
|
2021-03-12 08:57:14 +00:00
|
|
|
tags: injection
|
2020-08-19 12:17:24 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
2020-08-19 14:18:50 +00:00
|
|
|
PUT /testing-put.txt HTTP/1.1
|
2021-09-30 16:52:05 +00:00
|
|
|
Host: {{Hostname}}
|
2020-08-19 12:17:24 +00:00
|
|
|
Content-Type: text/plain
|
2020-08-19 14:33:55 +00:00
|
|
|
|
2021-05-04 11:02:53 +00:00
|
|
|
{{randstr}}
|
2020-08-19 14:18:50 +00:00
|
|
|
|
|
|
|
- |
|
|
|
|
GET /testing-put.txt HTTP/1.1
|
2021-09-30 16:52:05 +00:00
|
|
|
Host: {{Hostname}}
|
2020-08-19 12:17:24 +00:00
|
|
|
Content-Type: text/plain
|
2020-08-19 14:18:50 +00:00
|
|
|
|
2021-03-11 14:17:22 +00:00
|
|
|
req-condition: true
|
2020-08-19 12:17:24 +00:00
|
|
|
matchers:
|
2020-11-19 00:36:57 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2021-05-04 11:02:53 +00:00
|
|
|
- 'contains(body_2, "{{randstr}}")'
|