CVE-2022-46181
published 2022-12-29CVE-2022-46181: Gotify server is a simple server for sending and receiving messages in real-time per WebSocket. Versions prior to 2.2.2 contain an XSS vulnerability that…
PriorityP427medium5.4CVSS 3.1
AVNACLPRLUIRSCCLILAN
EPSS
0.50%
39.6th percentile
Gotify server is a simple server for sending and receiving messages in real-time per WebSocket. Versions prior to 2.2.2 contain an XSS vulnerability that allows authenticated users to upload .html files. An attacker could execute client side scripts **if** another user opened a link. The attacker could potentially take over the account of the user that clicked the link. The Gotify UI won't natively expose such a malicious link, so an attacker has to get the user to open the malicious link in a context outside of Gotify. The vulnerability has been fixed in version 2.2.2. As a workaround, you can block access to non image files via a reverse proxy in the `./image` directory.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | gotify_server | >= 0 < 2.2.2 | 2.2.2 |
| github.com | gotify_server_v2 | >= 0 < 2.2.2 | 2.2.2 |
| gotify | server | < 2.2.2 | 2.2.2 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server
osv·2024-08-21
CVE-2022-46181 gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server
gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server
gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server
GHSA
gotify/server vulnerable to Cross-site Scripting in the application image file upload
ghsa·2022-12-30
CVE-2022-46181 [MEDIUM] CWE-79 gotify/server vulnerable to Cross-site Scripting in the application image file upload
gotify/server vulnerable to Cross-site Scripting in the application image file upload
### Impact
The XSS vulnerability allows authenticated users to upload .html files. With that, an attacker could execute client side scripts **if** another user opened a link, such as:
```
https://push.example.org/image/[alphanumeric string].html
```
An attacker could potentially take over the account of the user that clicked the link. Keep in mind, the Gotify UI won't natively expose such a malicious link, so an attacker has to get the user to open the malicious link in a context outside of Gotify.
### Patches
The vulnerability has been fixed in version 2.2.2.
### Workarounds
You can block access to non image files via a reverse proxy in the `./image` directory.
### References
https://github.com
OSV
gotify/server vulnerable to Cross-site Scripting in the application image file upload
osv·2022-12-30
CVE-2022-46181 [MEDIUM] gotify/server vulnerable to Cross-site Scripting in the application image file upload
gotify/server vulnerable to Cross-site Scripting in the application image file upload
### Impact
The XSS vulnerability allows authenticated users to upload .html files. With that, an attacker could execute client side scripts **if** another user opened a link, such as:
```
https://push.example.org/image/[alphanumeric string].html
```
An attacker could potentially take over the account of the user that clicked the link. Keep in mind, the Gotify UI won't natively expose such a malicious link, so an attacker has to get the user to open the malicious link in a context outside of Gotify.
### Patches
The vulnerability has been fixed in version 2.2.2.
### Workarounds
You can block access to non image files via a reverse proxy in the `./image` directory.
### References
https://github.com
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/gotify/server/pull/534https://github.com/gotify/server/pull/535https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xhhttps://github.com/gotify/server/pull/534https://github.com/gotify/server/pull/535https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh
2022-12-29
Published