Limit the amount of data you can retrieve through the client API, or log who does it - Mendix Forum

Limit the amount of data you can retrieve through the client API, or log who does it

9

Problem:
It is not uncommon for an application to have a table with more than 100k records. It is also not uncommon for a user to need full read access to such a table.

 

Any Mendix application where this is the case has a major vulnerability, where the cloud environment can be taken down by using a simple xpath retrieve of the full table. 

 

Even though you can reduce a lot of the risk by not making anonymous users able to do this, for some applications this can still be considered a significant security risk.

 

Not only is it very easy to do this, as all information is publicly available, also in case someone actually attacks an environment like this it will not show up in the logs either.

 

Solutions:

  1.  Make the amount field required in mx.data.get(), and give it a max value (maybe configurable)
  2. Log the name of users communicating with the backend without using the user interface
asked
0 answers