Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fix for CVE-2014-1403
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindkinsey committed Jan 18, 2014
1 parent 7d79817 commit a3194d3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<property file="build.secret.properties"/>
<property name="project.build.artifactdir" value="./artifacts/"/>
<property name="project.build.publishdir" value="./artifacts/"/>
<property name="project.build.version" value="2.4.18"/>
<property name="project.build.version" value="2.4.19"/>

<!-- Setup classpath for js-build-tools ant tasks -->
<path id="js-build-tasks.classpath">
Expand Down
3 changes: 3 additions & 0 deletions src/Fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
// #ifdef debug
this._trace("retrieving function " + name);
// #endif
if (!_map.hasOwnProperty(name)) {
return;
}
var fn = _map[name];
// #ifdef debug
if (!fn) {
Expand Down
7 changes: 7 additions & 0 deletions src/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
</head>
<body>
<ul>
<li>
2.4.19 18.01.14
<br/>
Removed XSS vulnerability:
<br/>
- XSS due to lack of validation in name.html (CVE-2014-1403) - disclosed by Krzystof Kotowicz (Cure53)
</li>
<li>
2.4.18 21.09.13
<br/>
Expand Down
3 changes: 3 additions & 0 deletions src/name.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
else {
channel = hash.substring(0, indexOf);
url = decodeURIComponent(hash.substring(indexOf + 1));
if (url && !/https?:\/\//.test(url)) {
throw new Error('Invalid url');
}
}
switch (location.hash.substring(2, 3)) {
case "2":
Expand Down

0 comments on commit a3194d3

Please sign in to comment.