Author: jarcec
Date: Sat Jun 29 22:39:04 2013
New Revision: 1498035
URL: http://svn.apache.org/r1498035
Log:
Fixed Frame injection vulnerability in Javadoc
Modified:
sqoop/site/trunk/content/resources/docs/1.4.0-incubating/api/index.html
sqoop/site/trunk/content/resources/docs/1.4.1-incubating/api/index.html
sqoop/site/trunk/content/resources/docs/1.4.2/api/index.html
sqoop/site/trunk/content/resources/docs/1.4.3/api/index.html
Modified:
sqoop/site/trunk/content/resources/docs/1.4.0-incubating/api/index.html
URL:
http://svn.apache.org/viewvc/sqoop/site/trunk/content/resources/docs/1.4.0-incubating/api/index.html?rev=1498035&r1=1498034&r2=1498035&view=diff
==============================================================================
--- sqoop/site/trunk/content/resources/docs/1.4.0-incubating/api/index.html
(original)
+++ sqoop/site/trunk/content/resources/docs/1.4.0-incubating/api/index.html Sat
Jun 29 22:39:04 2013
@@ -12,6 +12,42 @@ Sqoop 1.4.0-incubating API
targetPage = targetPage.substring(1);
if (targetPage.indexOf(":") != -1)
targetPage = "undefined";
+ if (targetPage != "" && !validURL(targetPage))
+ targetPage = "undefined";
+ function validURL(url) {
+ var pos = url.indexOf(".html");
+ if (pos == -1 || pos != url.length - 5)
+ return false;
+ var allowNumber = false;
+ var allowSep = false;
+ var seenDot = false;
+ for (var i = 0; i < url.length - 5; i++) {
+ var ch = url.charAt(i);
+ if ('a' <= ch && ch <= 'z' ||
+ 'A' <= ch && ch <= 'Z' ||
+ ch == '$' ||
+ ch == '_') {
+ allowNumber = true;
+ allowSep = true;
+ } else if ('0' <= ch && ch <= '9'
+ || ch == '-') {
+ if (!allowNumber)
+ return false;
+ } else if (ch == '/' || ch == '.') {
+ if (!allowSep)
+ return false;
+ allowNumber = false;
+ allowSep = false;
+ if (ch == '.')
+ seenDot = true;
+ if (ch == '/' && seenDot)
+ return false;
+ } else {
+ return false;
+ }
+ }
+ return true;
+ }
function loadFrames() {
if (targetPage != "" && targetPage != "undefined")
top.classFrame.location = top.targetPage;
Modified:
sqoop/site/trunk/content/resources/docs/1.4.1-incubating/api/index.html
URL:
http://svn.apache.org/viewvc/sqoop/site/trunk/content/resources/docs/1.4.1-incubating/api/index.html?rev=1498035&r1=1498034&r2=1498035&view=diff
==============================================================================
--- sqoop/site/trunk/content/resources/docs/1.4.1-incubating/api/index.html
(original)
+++ sqoop/site/trunk/content/resources/docs/1.4.1-incubating/api/index.html Sat
Jun 29 22:39:04 2013
@@ -12,6 +12,42 @@ Sqoop 1.4.1-incubating API
targetPage = targetPage.substring(1);
if (targetPage.indexOf(":") != -1)
targetPage = "undefined";
+ if (targetPage != "" && !validURL(targetPage))
+ targetPage = "undefined";
+ function validURL(url) {
+ var pos = url.indexOf(".html");
+ if (pos == -1 || pos != url.length - 5)
+ return false;
+ var allowNumber = false;
+ var allowSep = false;
+ var seenDot = false;
+ for (var i = 0; i < url.length - 5; i++) {
+ var ch = url.charAt(i);
+ if ('a' <= ch && ch <= 'z' ||
+ 'A' <= ch && ch <= 'Z' ||
+ ch == '$' ||
+ ch == '_') {
+ allowNumber = true;
+ allowSep = true;
+ } else if ('0' <= ch && ch <= '9'
+ || ch == '-') {
+ if (!allowNumber)
+ return false;
+ } else if (ch == '/' || ch == '.') {
+ if (!allowSep)
+ return false;
+ allowNumber = false;
+ allowSep = false;
+ if (ch == '.')
+ seenDot = true;
+ if (ch == '/' && seenDot)
+ return false;
+ } else {
+ return false;
+ }
+ }
+ return true;
+ }
function loadFrames() {
if (targetPage != "" && targetPage != "undefined")
top.classFrame.location = top.targetPage;
Modified: sqoop/site/trunk/content/resources/docs/1.4.2/api/index.html
URL:
http://svn.apache.org/viewvc/sqoop/site/trunk/content/resources/docs/1.4.2/api/index.html?rev=1498035&r1=1498034&r2=1498035&view=diff
==============================================================================
--- sqoop/site/trunk/content/resources/docs/1.4.2/api/index.html (original)
+++ sqoop/site/trunk/content/resources/docs/1.4.2/api/index.html Sat Jun 29
22:39:04 2013
@@ -12,6 +12,42 @@ Sqoop 1.4.2 API
targetPage = targetPage.substring(1);
if (targetPage.indexOf(":") != -1)
targetPage = "undefined";
+ if (targetPage != "" && !validURL(targetPage))
+ targetPage = "undefined";
+ function validURL(url) {
+ var pos = url.indexOf(".html");
+ if (pos == -1 || pos != url.length - 5)
+ return false;
+ var allowNumber = false;
+ var allowSep = false;
+ var seenDot = false;
+ for (var i = 0; i < url.length - 5; i++) {
+ var ch = url.charAt(i);
+ if ('a' <= ch && ch <= 'z' ||
+ 'A' <= ch && ch <= 'Z' ||
+ ch == '$' ||
+ ch == '_') {
+ allowNumber = true;
+ allowSep = true;
+ } else if ('0' <= ch && ch <= '9'
+ || ch == '-') {
+ if (!allowNumber)
+ return false;
+ } else if (ch == '/' || ch == '.') {
+ if (!allowSep)
+ return false;
+ allowNumber = false;
+ allowSep = false;
+ if (ch == '.')
+ seenDot = true;
+ if (ch == '/' && seenDot)
+ return false;
+ } else {
+ return false;
+ }
+ }
+ return true;
+ }
function loadFrames() {
if (targetPage != "" && targetPage != "undefined")
top.classFrame.location = top.targetPage;
Modified: sqoop/site/trunk/content/resources/docs/1.4.3/api/index.html
URL:
http://svn.apache.org/viewvc/sqoop/site/trunk/content/resources/docs/1.4.3/api/index.html?rev=1498035&r1=1498034&r2=1498035&view=diff
==============================================================================
--- sqoop/site/trunk/content/resources/docs/1.4.3/api/index.html (original)
+++ sqoop/site/trunk/content/resources/docs/1.4.3/api/index.html Sat Jun 29
22:39:04 2013
@@ -12,6 +12,42 @@ Sqoop 1.4.3 API
targetPage = targetPage.substring(1);
if (targetPage.indexOf(":") != -1)
targetPage = "undefined";
+ if (targetPage != "" && !validURL(targetPage))
+ targetPage = "undefined";
+ function validURL(url) {
+ var pos = url.indexOf(".html");
+ if (pos == -1 || pos != url.length - 5)
+ return false;
+ var allowNumber = false;
+ var allowSep = false;
+ var seenDot = false;
+ for (var i = 0; i < url.length - 5; i++) {
+ var ch = url.charAt(i);
+ if ('a' <= ch && ch <= 'z' ||
+ 'A' <= ch && ch <= 'Z' ||
+ ch == '$' ||
+ ch == '_') {
+ allowNumber = true;
+ allowSep = true;
+ } else if ('0' <= ch && ch <= '9'
+ || ch == '-') {
+ if (!allowNumber)
+ return false;
+ } else if (ch == '/' || ch == '.') {
+ if (!allowSep)
+ return false;
+ allowNumber = false;
+ allowSep = false;
+ if (ch == '.')
+ seenDot = true;
+ if (ch == '/' && seenDot)
+ return false;
+ } else {
+ return false;
+ }
+ }
+ return true;
+ }
function loadFrames() {
if (targetPage != "" && targetPage != "undefined")
top.classFrame.location = top.targetPage;