Skip to content

Code Security Report: 1 high severity findings, 6 total findings [vp-rem] #79

@mend-developer-platform-dev

Description

@mend-developer-platform-dev

Code Security Report

Scan Metadata

Latest Scan: 2025-09-17 08:00AM
Total Findings: 6 | New Findings: 0 | Resolved Findings: 0
Tested Project Files: 32
Detected Programming Languages: 1 (Java*)

Most Relevant Findings

The list below presents the 6 most relevant findings that need your attention.

Severity
Vulnerability Type
CWE
File
Data Flows
Detected
Violated Workflows
Violation Priority
Violation SLA
High
Path/Directory Traversal
1
2025-09-17 08:00AM
Code Test
HIGH
2025-10-17
Vulnerable Code

user.setProfileImgPath(serverFile.getAbsolutePath());
userService.save(user);
BufferedOutputStream stream = new BufferedOutputStream(
new FileOutputStream(serverFile));
stream.write(bytes);
stream.close();
logger.info("Server File Location="
+ serverFile.getAbsolutePath());

Data Flows (1 detected)

String uploadFileHandler(@RequestParam("name") String name,@RequestParam("userName") String userName,


String uploadFileHandler(@RequestParam("name") String name,@RequestParam("userName") String userName,


Secure Code Warrior Training Material
Medium
Error Messages Information Exposure
1
2025-09-17 08:00AM
Medium
Error Messages Information Exposure
1
2025-09-17 08:00AM
Vulnerable Code

+ serverFile.getAbsolutePath());
return "You successfully uploaded file=" + name +".png";
} catch (Exception e) {
return "You failed to upload " + name +".png" + " => " + e.getMessage();
}
} else {
return "You failed to upload " + name +".png"
+ " because the file was empty.";
}

Data Flows (1 detected)

return "You failed to upload " + name +".png" + " => " + e.getMessage();

return "You failed to upload " + name +".png" + " => " + e.getMessage();

Secure Code Warrior Training Material
Medium
Error Messages Information Exposure
1
2025-09-17 08:00AM
Vulnerable Code

channel.close();
connection.close();
} catch (IOException io) {
System.out.println("IOException");
io.printStackTrace();
} catch (TimeoutException toe) {
System.out.println("TimeoutException : " + toe.getMessage());
toe.printStackTrace();
}
return "response";

Data Flows (1 detected)
Secure Code Warrior Training Material
Medium
Error Messages Information Exposure
1
2025-09-17 08:00AM
Low
Log Forging
1
2025-09-17 08:00AM
Vulnerable Code

new FileOutputStream(serverFile));
stream.write(bytes);
stream.close();
logger.info("Server File Location="
+ serverFile.getAbsolutePath());
return "You successfully uploaded file=" + name +".png";
} catch (Exception e) {
return "You failed to upload " + name +".png" + " => " + e.getMessage();

Data Flows (1 detected)

String uploadFileHandler(@RequestParam("name") String name,@RequestParam("userName") String userName,



String uploadFileHandler(@RequestParam("name") String name,@RequestParam("userName") String userName,



Secure Code Warrior Training Material

Findings Overview

Severity Vulnerability Type CWE Language Count
High Path/Directory Traversal CWE-22 Java* 1
Medium Error Messages Information Exposure CWE-209 Java* 4
Low Log Forging CWE-117 Java* 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions