Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added additional check in file handler to prevent that url attacks are hidden in url path encodings
orbiterdaa04f5db942
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.javaindex 3211722f1..b570f8b45 100644--- a/source/de/anomic/http/httpdFileHandler.java+++ b/source/de/anomic/http/httpdFileHandler.java@@ -296,6 +296,12 @@ public final class httpdFileHandler {assert(false) : "UnsupportedEncodingException: " + e.getMessage();}+ // check again hack attacks in path+ if (path.indexOf("..") >= 0) {+ httpd.sendRespondError(conProp,out,4,403,null,"Access not allowed",null);+ return;+ }+// check permission/granted accessString authorization = (String) requestHeader.get(httpHeader.AUTHORIZATION);String adminAccountBase64MD5 = switchboard.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "");