Merge pull request #10770 from projectdiscovery/torchserve-detect

Create torchserve-detect.yaml
patch-11
Ritik Chaddha 2024-09-19 08:01:08 +04:00 committed by GitHub
commit 921c7e0d43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
id: torchserve-detect
info:
name: TorchServe API Description - Detect
author: DhiyaneshDk
severity: info
description: |
Detects the presence of TorchServe APIs.
metadata:
verified: true
max-request: 1
vendor: pytorch
product: torchserve
fofa-query: body="Requested method is not allowed, please refer to API document"
tags: tech,pytorch,api
http:
- method: GET
path:
- "{{BaseURL}}/api-description"
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'TorchServe APIs"'
- '"apiDescription"'
- 'operationId":'
condition: or
- type: word
part: content_type
words:
- "application/json"