Description
Postbird 0.8.4 allows stored XSS via the onerror attribute of an IMG element in any PostgreSQL database table. This can result in reading local files via vectors involving XMLHttpRequest and open of a file:/// URL, or discovering PostgreSQL passwords via vectors involving Window.localStorage and savedConnections.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Postbird 0.8.4 - Javascript Injection EDB-49910 · webapps · May 27, 2021
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://github.com/Paxa/postbird/issues/132
- https://github.com/Paxa/postbird/issues/133
- https://github.com/Paxa/postbird/issues/134
- https://github.com/Tridentsec-io/postbird
- http://packetstormsecurity.com/files/162831/Postbird-0.8.4-Cross-Site-Scripting-Local-File-Inclusion.html
- http://packetstormsecurity.com/files/162872/Postbird-0.8.4-XSS-LFI-Insecure-Data-Storage.html
- https://www.exploit-db.com/exploits/49910
- https://tridentsec.io/blogs/postbird-cve-2021-33570/