We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id: google-iap-detection info: name: Google IAP Detection author: davidfegyver severity: info description: | Detects if the target uses Google's Identity-Aware Proxy http: - method: GET path: - "{{BaseURL}}" matchers: - type: word part: header words: - "X-Goog-Iap-Generated-Response: true" # Documentation: https://cloud.google.com/iap/docs/query-parameters-and-headers-howto#detecting_responses extractors: #included as an alternative to https://github.com/projectdiscovery/nuclei-templates/issues/11443 - type: regex part: header name: client_id regex: - "client_id=([^&]+)" group: 1 - method: GET path: - "{{BaseURL}}" redirects: true max-redirects: 2 # Two redirects are needed to get to the Google OAuth login page extractors: # I'm sure this part can be simplified, please help me do so :) - type: regex part: body name: redirect_to regex: - "{key: 'ds:1', hash: '\\d+', data:\\[\"([^\"]+)\",[^,]+,[^,]+,\"([^\"]+)\"]" group: 1 - type: regex part: body name: contact_email regex: - "{key: 'ds:1', hash: '\\d+', data:\\[\"([^\"]+)\",[^,]+,[^,]+,\"([^\"]+)\"]" group: 2 - type: regex part: body name: app_name regex: - "{key: 'ds:5', hash: '\\d+', data:\\[[^,]+,[^,]+,\"([^\"]+)\"]" group: 1
<!-- The Google OAuth login page includes the following code: --> <script class="ds:1" nonce="xxx"> AF_initDataCallback({ key: 'ds:1', hash: '4', data: ["david-dev", null, null, "davidfegyver@example.com"], sideChannel: {} }); </script> <script class="ds:5" nonce="xxx"> AF_initDataCallback({ key: 'ds:5', hash: '5', data: [2, null, "David Dev App"], sideChannel: {} }); </script>
No response
The text was updated successfully, but these errors were encountered:
Thanks for your contribution @davidfegyver !
Sorry, something went wrong.
DhiyaneshGeek
No branches or pull requests
Is there an existing template for this?
Nuclei Template
Relevant dumped responses
Anything else?
No response
The text was updated successfully, but these errors were encountered: