Repository navigation
1.2.2: Security fixes, published as se7enxweb/expcomponents-webdav
Security release. The package is now published as se7enxweb/expcomponents-webdav.
Security fixes
From zetacomponents/Webdav pull request zetacomponents#8, contributed by Ekkehard Doerre (CJW Network):
- Paths can no longer leave the root of
ezcWebdavFileBackend. Both path factories remove.and..segments (RFC 3986, section 5.2.4), also from theDestinationheader of COPY and MOVE; the file backend refuses request URIs and destinations that still contain such segments, also percent-encoded, with 403 Forbidden. - Request bodies with a document type declaration are refused with 400 Bad Request and are parsed with
LIBXML_NONET; the libxml error handling state is restored on errors. - Digest authentication compares the digest in constant time and sends a nonce from
random_bytes().
From pull request zetacomponents#6:
- Lock tokens are created from
random_bytes()as UUID version 4 instead of a time-based value.
From pull request zetacomponents#7:
ezcWebdavFileBackendchecks the real path (realpath()) of every resource it reads, writes, lists, copies or deletes. A symbolic link inside the root that points outside of it, or a symbolic link whose target does not exist, is no longer followed: requests through it are refused with 403 Forbidden, listings leave it out, a recursive COPY skips it and a recursive DELETE is refused. Symbolic links that stay inside the root keep working.
Tests cover all of these fixes; the rest of the suite is unchanged against 1.2.1.
Package name
- Renamed: the Composer package is
se7enxweb/expcomponents-webdav(repository github.com/se7enxweb/expcomponents-webdav). Itreplacesse7enxweb/zetacomponents-webdavandzetacomponents/webdav, so existing requirements keep resolving. Class names (ezcWebdav*) are unchanged. se7enxweb/zetacomponents-webdavis abandoned in favour of this package; update yourcomposer.jsonto"se7enxweb/expcomponents-webdav": "~1.2.2".
Full list in the ChangeLog.