XML External Entity injection in Yaws - CVE-2020-24379
Published: September 9, 2020 / Updated: September 27, 2020
Vulnerability details
The vulnerability allows a remote attacker to gain access to sensitive information.
The vulnerability exists due to insufficient validation of user-supplied XML input within WebDAV implementation in Yaws web server A remote attacker can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.
Successful exploitation of the vulnerability may allow an attacker to view contents of arbitrary file on the server or perform network scanning of internal and external infrastructure.
Affected software
Arch Linux
Ubuntu
yaws (Debian package)
erlang-yapp (Ubuntu package)
erlang-yaws (Ubuntu package)
yaws (Ubuntu package)
yaws-mail (Ubuntu package)
How to mitigate CVE-2020-24379
yaws (Debian package) - update to 2.0.6+dfsg-1+deb10u1
erlang-yapp (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
erlang-yaws (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
yaws (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
yaws-mail (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
External References
- https://github.com/erlyaws/yaws/commits/master
- https://github.com/vulnbe/poc-yaws-dav-xxe
- https://lists.debian.org/debian-lts-announce/2020/09/msg00022.html
- https://packetstormsecurity.com/files/159106/Yaws-2.0.7-XML-Injection-Command-Injection.html
- https://vuln.be/post/yaws-xxe-and-shell-injections/