Synology Diskstation privilege escalation and repair

Source: Internet
Author: User
Tags diskstation

Brief description: a security problem exists in the Synology Diskstation implementation, which can lead to a User Privilege Escalation to root.
Required for obtaining permissions: Install the photo plug-in or other php programs with Vulnerabilities

By reading apache configuration, we can find that Alias/photosrc points to the user's image directory. If the phpmyadmin plug-in is installed and the root password is not set, you can directly use mysql's into outfile to write webshell to the image directory. in addition, it is also feasible to use ftp or background management to upload shell to the image directory. then, you can obtain webshell through http: // xxxxxxxxx/photosrc/directory name/shell file name.

After obtaining webshell, you can bounce a shell to the attacker's computer. then there is a file in the/tmp directory that caches the smb password. Unfortunately, this file is readable by any user. if the Administrator has logged on to the NAS using smb, he can get the hash cracking as root.
Proof of vulnerability:




Solution: Set the cache file to be unreadable by www users

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.