Change this code to not log user-controlled data.
On logs as mentioned below, SonarQube throws an issue stating 'Change this code to not log user-controlled data.'
rootPagePath);
On logs as mentioned below, SonarQube throws an issue stating 'Change this code to not log user-controlled data.'
Hi @goyalkritika,
Logging user-controlled data considered a security vulnerability. Attackers can manipulate user-controlled data to inject malicious code or exploit application vulnerabilities. In this case, the rootPagePath parameter is logged with the error message. If an attacker is able to control the value of rootPagePath, they can use it to inject their own code or perform other attacks on the application. This problem can be fixed by removing user-controlled data logging from the code.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.