Merge pull request #1875 from righettod/feature_add_oauth2_tpl

Add detection template for OAUTH2
patch-1
Sandeep Singh 2021-07-10 21:50:17 +05:30 committed by GitHub
commit 357790b73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
id: oauth2-detect
info:
name: OAuth 2.0 Authorization Server Detection Template
author: righettod
severity: info
description: Try to detect OAuth 2.0 Authorization Server via the "oauth/token" endpoint
tags: tech,oauth
requests:
- method: POST
path:
- "{{BaseURL}}/oauth/token"
body: "grant_type=authorization_code&client_id=xxx&redirect_uri=https%3A%2F%2Fprojectdiscovery.io&code=xxx&client_secret=xxx"
matchers-condition: and
matchers:
- type: status
status:
- 401
- 400
condition: or
- type: word
part: body
words:
- 'error":"invalid_client"'