Skip to main content

Technical information leak - Print Functions


Technical information is obtained from the application due to the use of print functions (Print, PrinStackTrace, Println, among others) whose outputs are normally shown in the stdout (standard output). In development environment it is acceptable to use these functions to see errors (Debug), but using them in production environment is the same as exposing yourself to show sensitive information of the application.


  • Enlarge attack surface.
  • Access to technical information of the application.


The application must securely report all possible events that may occur, it must not provide technical or sensitive information to unauthorized users, as they could exploit it to extend the knowledge of the attack surface.


Authenticated local attacker with access to the server console.

Expected Remediation Time

⌚ 15 minutes.


Default score using CVSS 3.1. It may change depending on the context of the vulnerability.


  • Attack vector: L
  • Attack complexity: L
  • Privileges required: H
  • User interaction: N
  • Scope: U
  • Confidentiality: L
  • Integrity: N
  • Availability: N


  • Exploit code madurity: P
  • Remediation level: U
  • Report confidence: C


  • Vector string: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N/E:P/RL:U/RC:C
  • Score:
    • Base: 2.3
    • Temporal: 2.2
  • Severity:
    • Base: Low
    • Temporal: Low

Code Examples

Compliant code

The application does not make use of any printing functions

public class Test{
public static void main(String[] args){
try {
throw new IOException();
catch (IOException e) {
//Code to handle the exception

Non compliant code

The source code contains printing functions that could potentially disclose sensitive information

public class Test{
public static void main(String[] args){
try {
throw new IOException();
catch (IOException e) {


free trial

Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.