Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit d977244

Browse files
committed
Updated CHANGELOG for ZF2015-05
1 parent 68fc742 commit d977244

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,27 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 1.0.4 - TBD
5+
## 1.0.4 - 2015-06-23
6+
7+
This is a security release.
8+
9+
A patch has been applied to `Zend\Diactoros\Uri::filterPath()` that ensures that
10+
paths can only begin with a single leading slash. This prevents the following
11+
potential security issues:
12+
13+
- XSS vectors. If the URI path is used for links or form targets, this prevents
14+
cases where the first segment of the path resembles a domain name, thus
15+
creating scheme-relative links such as `//example.com/foo`. With the patch,
16+
the leading double slash is reduced to a single slash, preventing the XSS
17+
vector.
18+
- Open redirects. If the URI path is used for `Location` or `Link` headers,
19+
without a scheme and authority, potential for open redirects exist if clients
20+
do not prepend the scheme and authority. Again, preventing a double slash
21+
corrects the vector.
22+
23+
If you are using `Zend\Diactoros\Uri` for creating links, form targets, or
24+
redirect paths, and only using the path segment, we recommend upgrading
25+
immediately.
626

727
### Added
828

@@ -39,6 +59,9 @@ All notable changes to this project will be documented in this file, in reverse
3959
- The request MUST return a `UriInterface` instance from `getUri()`; that
4060
instance CAN be empty. Previously, Diactoros would return `null`; now it
4161
lazy-instantiates an empty `Uri` instance on initialization.
62+
- [ZF2015-05](http://framework.zend.com/security/advisory/ZF2015-05) was
63+
addressed by altering `Uri::filterPath()` to prevent emitting a path prepended
64+
with multiple slashes.
4265

4366
## 1.0.3 - 2015-06-04
4467

0 commit comments

Comments
 (0)