Software /
code /
prosody
Annotate
TODO @ 12180:53e0ae770917
util.xml: Do not allow doctypes, comments or processing instructions
Yes. This is as bad as it sounds. CVE pending.
In Prosody itself, this only affects mod_websocket, which uses util.xml
to parse the <open/> frame, thus allowing unauthenticated remote DoS
using Billion Laughs. However, third-party modules using util.xml may
also be affected by this.
This commit installs handlers which disallow the use of doctype
declarations and processing instructions without any escape hatch. It,
by default, also introduces such a handler for comments, however, there
is a way to enable comments nontheless.
This is because util.xml is used to parse human-facing data, where
comments are generally a desirable feature, and also because comments
are generally harmless.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Mon, 10 Jan 2022 18:23:54 +0100 |
parent | 9803:35ef6af41600 |
rev | line source |
---|---|
5405 | 1 == 1.0 == |
4138
62f5e6b11571
TODO: Update for 0.9 milestones
Matthew Wild <mwild1@gmail.com>
parents:
4134
diff
changeset
|
2 - Roster providers |
62f5e6b11571
TODO: Update for 0.9 milestones
Matthew Wild <mwild1@gmail.com>
parents:
4134
diff
changeset
|
3 - Clustering |
2663 | 4 - World domination |