Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.xml: Do not allow doctypes, comments or processing instructions | Jonas Schäfer | 2022-01-10 | 1 | -2/+23 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | util.xml: Use variable instead of constant for consistency (thanks Thijs) | Matthew Wild | 2021-12-26 | 1 | -1/+1 |
| | |||||
* | util.xml: Fix float formatting of line and columns in error (on Lua 5.3+) | Kim Alvefur | 2020-10-03 | 1 | -1/+1 |
| | |||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | util.xml: Correct stanza.namespaces table construction when duplicate prefix ↵ | Waqas Hussain | 2016-03-05 | 1 | -5/+11 |
| | | | | names are encountered in the element tree. | ||||
* | util.stanza, util.xml, util.xmppstream: Add support for tracking defined ↵ | Matthew Wild | 2015-12-08 | 1 | -1/+16 |
| | | | | namespaces and their prefix (stanza.namespaces), knowing/preserving prefix names is required for some applications (thanks daurnimator) | ||||
* | util.*: Remove use of module() function, make all module functions local and ↵ | Kim Alvefur | 2015-02-21 | 1 | -3/+4 |
| | | | | return them in a table at the end | ||||
* | util.xml: Remove unused parameter (thanks, luacheck) | Matthew Wild | 2015-05-06 | 1 | -1/+1 |
| | |||||
* | portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, ↵ | Matthew Wild | 2015-05-06 | 1 | -0/+1 |
| | | | | usermanager, util.xml: Add luacheck annotations | ||||
* | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -2/+2 |
| | |||||
* | util.xml: Fix module name. | Waqas Hussain | 2012-12-03 | 1 | -1/+1 |
| | |||||
* | util.xml: Initial commit; exposes parse(), which is now the canonical way to ↵ | Waqas Hussain | 2012-12-03 | 1 | -0/+57 |
convert a string to a stanza. |