TorchServe API Description - Detect
ID: torchserve-detect
Severity: info
Author: DhiyaneshDk
Tags: tech,pytorch,api
Description
Section titled “Description”Detects the presence of TorchServe APIs.
YAML Source
Section titled “YAML Source”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"# digest: 4a0a0047304502200270fd56a09ed29edf99ab0f7d5d5959be7e81d99e71a6f8496d762fda080ce2022100be4a1fb9680261413fb499e9385bfffafa439638eb0a940ab274d48a1f53b94f:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/technologies/torchserve-detect.yaml"