Hi All,
I am Maloy Roy Orko.
Recently in one of my pentest research, I found an Image_Gallery application By Needyamin which is an open source Image Gallery Management System using PHP, MYSQL, JAVASCRIPT.
It is based on the scripting languages of PHP. Image_Gallery is an Image gallery management system using PHP, MYSQL, JAVASCRIPT
Curious to explore its functionalities, I downloaded and set it up in my local system.
After fiddling with the source code, I found that it did not have any kind of File Extension or Upload protection In admin/gallery.php file.
It can lead into:
- Malware Distribution
- Remote Code Execution (RCE)
- Data Breach
- Denial of Service (DoS)
- Web Shell Installation
- Bypassing Security Controls
- Reputation Damage
The Main Thing Is,If any NON-IT personal uses this template,he will fall into this vulnerability and his companies reputation can be lost too.Thats why I am trying to inform everyone about this.
- Title of the Vulnerability:
- Image_Gallery | Add Gallery- admin/gallery.php | Unrestricted File Upload | Found By Maloy Roy Orko
- Vulnerability Class: Unrestricted File Upload
- Product Name: Image_Gallery
- Vendor: https://github.com/needyamin/
- Vulnerable Product Link: https://github.com/needyamin/image_gallery/
- Technical Details & Description: The application source code is coded in a way which allows Unrestricted File Upload.It can lead into:
- Malware Distribution
- Remote Code Execution (RCE)
- Data Breach
- Denial of Service (DoS)
- Web Shell Installation
- Bypassing Security Controls
- Reputation Damage
- Product & Service Introduction: Image_Gallery
- Observation & Exploitation:
- It shows,No Protection Against Unrestricted File Upload .
- So,We don't need even any bypass 😉
- So upload a shell and then deface the system 😏😎
- For this, We Need To Create A Gallery And Upload Shell Into Cover Image Here:
- So,Lets Upload Shell.php there
- You can see that there is no defense or filter against Unrestricted File Upload.Normally They are getting Uploaded and then we can access shell.php here:
- http://192.168.0.100:8080/ima/models/hacker/shell.php
- So, We Found Unrestricted File Upload Vulnerability & Shell Upload Done Too 🤝
Video POC:
Conclusion :-
The main aim of this article is to show that if any NON-IT personal uses this template,he will fall into this vulnerability and his companies reputation can be lost too. But I also hope that it helps to give you ideas of how combi
ning attacks can make them much more potent.
0 Comments