Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Fixed another XSS vulnerability. By adding </textarea>[add nasty text/commands here] it was possible to mess up the edit and the preview page.
low0128f6627378af2
diff --git a/htroot/Wiki.java b/htroot/Wiki.javaindex 8b7cd9d51..c92f06f24 100644--- a/htroot/Wiki.java+++ b/htroot/Wiki.java@@ -118,7 +118,7 @@ public class Wiki {try {prop.put("mode", 1); //editprop.put("mode_author", author);- prop.put("mode_page-code", new String(page.page(), "UTF-8"));+ prop.put("mode_page-code", new String(page.page(), "UTF-8").replaceAll("</textarea>","</textarea>"));prop.put("mode_pagename", pagename);} catch (UnsupportedEncodingException e) {}}@@ -132,7 +132,7 @@ public class Wiki {prop.put("mode_author", author);prop.put("mode_date", dateString(new Date()));prop.put("mode_page", wikiTransformer.transform(post.get("content", "")));- prop.put("mode_page-code", post.get("content", ""));+ prop.put("mode_page-code", post.get("content", "").replaceAll("</textarea>","</textarea>"));}//end contrib of [MN]