A application use the debug as boolean to prefill login, password for authentication.
The code is something like that :
if (ContantsFile.CUSTOM_DEBUG_FLAG) //static final
{
//disable access control ==> admin mode (admin section are now visible for anybody)
}
The application is coded in JAVA. And the constants.class is a different one delivered in production.
I have the feeling (excuse me I am still a newbie in the field) that this pattern is a security flaw for the following reason : - if an attacker could change the constants.class in production, the whole application will be vulnerable
It is obviously a bad pratice for a DEV point of view (I am a developer).
Do you have better explanation or arguments? Those developers will respond me that if an attacker have access to his file, he is already inside the application and could change anything.
Thank you in advance
Frenchy