We have performed a penetration test and the following was the outcome:
We noticed that there are .xml and .gz files available on the web server. The files contain sensitive information about the design and configuration of the application frontend. This could lead to an attacker gaining unauthorized access to this information and performing targeted phishing attacks against application users.
The files that can be viewed are both archive (gz) and regular (xml) files regarding the pages of the application. For example;
http:// ... (app-url) ... /pages/nl_NL/Administration/Account_New.page.xml.gz and
http:// ... (app-url) ... /pages/nl_NL/Administration/Account_New.page.xml
This goes for all other pages in the application, regardless of whether a user has access to them or not (even anonymous users have access to them).
When contacting the servicesdesk we got the following answer:
These pages are served as static content and as such accessible by anyone that can access the web server. Assuming (this would need to be investigated) it could be done through the application server instead, so the static pages are no longer needed and no longer accessible, this would mean a fundamental change in how pages are served and as such we would classify this as a feature request.
Herewith I would like to request a feature request regarding the solution suggested by the servicedesk
Is this issue fixed in mendix 7 version ? Anyone have any update
This specific security risk was also found in our project's penetration test.
Can you give an update when this will be put on the roadmap Danny Roest?
We have taken the application down due to this security issue.
Can you provide us with any kind of progress on the subject?
Unfortunatly I cannot give you the exact details how it is implemented because this has to be researched, is dependent on other things and too far in the future to know exactly. What I can tell you is that the metadata of the pages (now page xml, in the new future something similar) will not be publicly available and the access will be checked for the right authorization.
As this is part of the longer term roadmap item I cannot give a (rough) date, because it will be too uncertain and can change.
I ask you specifically for the exact details of the change and a rough implementation date.
Please provide us insight.
We are currently working on improving our client fundamentally and moving to ReactJS. With this approach, the current page XMLs will be replaced by a new (React like) mechanism. When doing this, the plan is to take subject into account and secure the non public page definitions. Regarding a timeline, I cannot give an exact one as this is a large project. I will not be there within a couple of months.
I hope this answers your questions.
Our answer to this pen test finding is the following currently:
These xml pages are served as static content and as such accessible by anyone that can access the web server. Assuming (this would need to be investigated) it could be done through the application server instead, so the static pages are no longer needed and no longer accessible, this would mean a fundamental change in how pages are served and as such we would classify this as a feature request. This is currently not on our product roadmap as we do not consider this a security risk, because of the following reasons:
- to access the pages you would need to guess the page names correctly. This is far from trivial to do.
- even if you manage to guess the page names correctly. The only real breach is learning the names of entities, attributes and user roles. You still won't have access to any actual data or logic without a valid session and the associated user role and security rights (the user role controls page access, microflow access, OData access and entity access). So if you have configured the security model properly, the tools for which are provided out-of-the-box by the Mendix Business Modeler, there is no real security risk in being able to access some model metadata.
- the developer can already obfuscate all metadata by changing the names of pages, entities, attributes, user roles and so forth to something unintelligible. In your example you could rename the page Account_New to "ABCDEFGH" for example.
Danny, can you provide any insight in when it will be implemented?
So far this is a blocking issue for the go-live of our application. Will it be there in 1 week, month or in 1 year?
Thank you for responding. Two questions:
1) What exactely are you going to change?
2) When will it be implemented approximately?
The page xml's do not expose data, so no customer data for example is exposed. However, details of the application are exposed. We are working on improving the client one of the things that will change are the page xml's.
I will put this feature on the roadmap.