TVT618

[Linux] WPSeku version Python 3.x

Mar 25th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.74 KB | None | 0 0
  1. [Linux]
  2. WPSeku version Python 3.x - Wordpress Security Scanner
  3.  
  4. About WPSeku - Wordpress Security Scanner
  5. WPSeku is a black box WordPress vulnerability scanner that can be used to scan remote WordPress installations to find security issues.
  6.  
  7. Installation
  8. git clone https://github.com/m4ll0k/WPSeku.git wpseku
  9. cd wpseku
  10. pip3 install -r requirements.txt
  11. python3 wpseku.py
  12.  
  13. Usage
  14. Generic Scan: python3 wpseku.py --url https://www.xxxxxxx.com --verbose
  15. Output
  16. ----------------------------------------
  17. _ _ _ ___ ___ ___| |_ _ _
  18. | | | | . |_ -| -_| '_| | |
  19. |_____| _|___|___|_,_|___|
  20. |_| v0.4.0
  21.  
  22. WPSeku - Wordpress Security Scanner
  23. by Momo Outaadi (m4ll0k)
  24. ----------------------------------------
  25.  
  26. [ + ] Target: https://www.xxxxxxx.com
  27. [ + ] Starting: 02:38:51
  28.  
  29. [ + ] Server: Apache
  30. [ + ] Uncommon header "X-Pingback" found, with contents: https://www.xxxxxxx.com/xmlrpc.php
  31. [ i ] Checking Full Path Disclosure...
  32. [ + ] Full Path Disclosure: /home/ehc/public_html/wp-includes/rss-functions.php
  33. [ i ] Checking wp-config backup file...
  34. [ + ] wp-config.php available at: https://www.xxxxxxx.com/wp-config.php
  35. [ i ] Checking common files...
  36. [ + ] robots.txt file was found at: https://www.xxxxxxx.com/robots.txt
  37. [ + ] xmlrpc.php file was found at: https://www.xxxxxxx.com/xmlrpc.php
  38. [ + ] readme.html file was found at: https://www.xxxxxxx.com/readme.html
  39. [ i ] Checking directory listing...
  40. [ + ] Dir "/wp-admin/css" listing enable at: https://www.xxxxxxx.com/wp-admin/css/
  41. [ + ] Dir "/wp-admin/images" listing enable at: https://www.xxxxxxx.com/wp-admin/images/
  42. [ + ] Dir "/wp-admin/includes" listing enable at: https://www.xxxxxxx.com/wp-admin/includes/
  43. [ + ] Dir "/wp-admin/js" listing enable at: https://www.xxxxxxx.com/wp-admin/js/
  44. ......
  45.  
  46. Bruteforce Login:
  47. python3 wpseku.py --url https://www.xxxxxxx.com --brute --user test --wordlist wl.txt --verbose
  48. Output
  49. ----------------------------------------
  50. _ _ _ ___ ___ ___| |_ _ _
  51. | | | | . |_ -| -_| '_| | |
  52. |_____| _|___|___|_,_|___|
  53. |_| v0.4.0
  54.  
  55. WPSeku - Wordpress Security Scanner
  56. by Momo Outaadi (m4ll0k)
  57. ----------------------------------------
  58.  
  59. [ + ] Target: https://www.xxxxxxx.com
  60. [ + ] Starting: 02:46:32
  61.  
  62. [ + ] Bruteforcing Login via XML-RPC...
  63. [ i ] Setting user: test
  64. [ + ] Valid Credentials:
  65.  
  66. -----------------------------
  67. | Username | Passowrd |
  68. -----------------------------
  69. | test | kamperasqen13 |
  70. -----------------------------
  71.  
  72. Scan plugin,theme and wordpress code: python3 wpseku.py --scan <dir/file> --verbose
  73. Note: Testing Akismet Directory Plugin https://plugins.svn.wordpress.org/akismet
  74. Output
  75. ----------------------------------------
  76. _ _ _ ___ ___ ___| |_ _ _
  77. | | | | . |_ -| -_| '_| | |
  78. |_____| _|___|___|_,_|___|
  79. |_| v0.4.0
  80.  
  81. WPSeku - Wordpress Security Scanner
  82. by Momo Outaadi (m4ll0k)
  83. ----------------------------------------
  84.  
  85. [ + ] Checking PHP code...
  86. [ + ] Scanning directory...
  87. [ i ] Scanning trunk/class.akismet.php file
  88. ----------------------------------------------------------------------------------------------------------
  89. | Line | Possibile Vuln. | String |
  90. ----------------------------------------------------------------------------------------------------------
  91. | 597 | Cross-Site Scripting | [b"$_GET['action']", b"$_GET['action']"] |
  92. | 601 | Cross-Site Scripting | [b"$_GET['for']", b"$_GET['for']"] |
  93. | 140 | Cross-Site Scripting | [b"$_POST['akismet_comment_nonce']", b"$_POST['akismet_comment_nonce']"] |
  94. | 144 | Cross-Site Scripting | [b"$_POST['_ajax_nonce-replyto-comment']"] |
  95. | 586 | Cross-Site Scripting | [b"$_POST['status']", b"$_POST['status']"] |
  96. | 588 | Cross-Site Scripting | [b"$_POST['spam']", b"$_POST['spam']"] |
  97. | 590 | Cross-Site Scripting | [b"$_POST['unspam']", b"$_POST['unspam']"] |
  98. | 592 | Cross-Site Scripting | [b"$_POST['comment_status']", b"$_POST['comment_status']"] |
  99. | 599 | Cross-Site Scripting | [b"$_POST['action']", b"$_POST['action']"] |
  100. | 214 | Cross-Site Scripting | [b"$_SERVER['HTTP_REFERER']", b"$_SERVER['HTTP_REFERER']"] |
  101. | 403 | Cross-Site Scripting | [b"$_SERVER['REQUEST_TIME_FLOAT']", b"$_SERVER['REQUEST_TIME_FLOAT']"] |
  102. | 861 | Cross-Site Scripting | [b"$_SERVER['REMOTE_ADDR']", b"$_SERVER['REMOTE_ADDR']"] |
  103. | 930 | Cross-Site Scripting | [b"$_SERVER['HTTP_USER_AGENT']", b"$_SERVER['HTTP_USER_AGENT']"] |
  104. | 934 | Cross-Site Scripting | [b"$_SERVER['HTTP_REFERER']", b"$_SERVER['HTTP_REFERER']"] |
  105. | 1349 | Cross-Site Scripting | [b"$_SERVER['REMOTE_ADDR']"] |
  106. ----------------------------------------------------------------------------------------------------------
  107. [ i ] Scanning trunk/wrapper.php file
  108. [ + ] Not found vulnerabilities
  109. [ i ] Scanning trunk/akismet.php file
  110. -----------------------------------------------
  111. | Line | Possibile Vuln. | String |
  112. -----------------------------------------------
  113. | 55 | Authorization Hole | [b'is_admin()'] |
  114. -----------------------------------------------
  115. [ i ] Scanning trunk/class.akismet-cli.php file
  116. [ + ] Not found vulnerabilities
  117. [ i ] Scanning trunk/class.akismet-widget.php file
  118. [ + ] Not found vulnerabilities
  119. [ i ] Scanning trunk/index.php file
  120. [ + ] Not found vulnerabilities
  121. [ i ] Scanning trunk/class.akismet-admin.php file
  122. --------------------------------------------------------------------------------------------------------------------
  123. | Line | Possibile Vuln. | String |
  124. --------------------------------------------------------------------------------------------------------------------
  125. | 39 | Cross-Site Scripting | [b"$_GET['page']", b"$_GET['page']"] |
  126. | 134 | Cross-Site Scripting | [b"$_GET['akismet_recheck']", b"$_GET['akismet_recheck']"] |
  127. | 152 | Cross-Site Scripting | [b"$_GET['view']", b"$_GET['view']"] |
  128. | 190 | Cross-Site Scripting | [b"$_GET['view']", b"$_GET['view']"] |
  129. | 388 | Cross-Site Scripting | [b"$_GET['recheckqueue']"] |
  130. | 841 | Cross-Site Scripting | [b"$_GET['view']", b"$_GET['view']"] |
  131. | 843 | Cross-Site Scripting | [b"$_GET['view']", b"$_GET['view']"] |
  132. | 850 | Cross-Site Scripting | [b"$_GET['action']"] |
  133. | 851 | Cross-Site Scripting | [b"$_GET['action']"] |
  134. | 852 | Cross-Site Scripting | [b"$_GET['_wpnonce']", b"$_GET['_wpnonce']"] |
  135. | 868 | Cross-Site Scripting | [b"$_GET['token']", b"$_GET['token']"] |
  136. | 869 | Cross-Site Scripting | [b"$_GET['token']"] |
  137. | 873 | Cross-Site Scripting | [b"$_GET['action']"] |
  138. | 874 | Cross-Site Scripting | [b"$_GET['action']"] |
  139. | 1005 | Cross-Site Scripting | [b"$_GET['akismet_recheck_complete']"] |
  140. | 1006 | Cross-Site Scripting | [b"$_GET['recheck_count']"] |
  141. | 1007 | Cross-Site Scripting | [b"$_GET['spam_count']"] |
  142. | 31 | Cross-Site Scripting | [b"$_POST['action']", b"$_POST['action']"] |
  143. | 256 | Cross-Site Scripting | [b"$_POST['_wpnonce']"] |
  144. | 260 | Cross-Site Scripting | [b'$_POST[$option]', b'$_POST[$option]'] |
  145. | 267 | Cross-Site Scripting | [b"$_POST['key']"] |
  146. | 392 | Cross-Site Scripting | [b"$_POST['offset']", b"$_POST['offset']", b"$_POST['limit']", b"$_POST['limit']"] |
  147. | 447 | Cross-Site Scripting | [b"$_POST['id']"] |
  148. | 448 | Cross-Site Scripting | [b"$_POST['id']"] |
  149. | 460 | Cross-Site Scripting | [b"$_POST['id']", b"$_POST['url']"] |
  150. | 461 | Cross-Site Scripting | [b"$_POST['id']"] |
  151. | 464 | Cross-Site Scripting | [b"$_POST['url']"] |
  152. | 388 | Cross-Site Scripting | [b"$_REQUEST['action']", b"$_REQUEST['action']"] |
  153. | 400 | Cross-Site Scripting | [b"$_SERVER['HTTP_REFERER']", b"$_SERVER['HTTP_REFERER']"] |
  154. --------------------------------------------------------------------------------------------------------------------
  155. [ i ] Scanning trunk/class.akismet-rest-api.php file
  156. [ + ] Not found vulnerabilities
  157.  
  158. Credits and Contributors
  159. Original idea and script from WPScan Team (https://wpscan.org/)
  160. WPScan Vulnerability Database (https://wpvulndb.com/api)
  161.  
  162. Download WPSeku: https://github.com/m4ll0k/WPSeku
Advertisement
Add Comment
Please, Sign In to add comment