Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Security Report: 9 total findings #560

Open
1 task
mend-for-github-com bot opened this issue Aug 16, 2023 · 0 comments
Open
1 task

Code Security Report: 9 total findings #560

mend-for-github-com bot opened this issue Aug 16, 2023 · 0 comments
Labels
Mend: code security findings Code security findings detected by Mend

Comments

@mend-for-github-com
Copy link

Code Security Report

Scan Metadata

Latest Scan: 2023-08-16 07:17am
Total Findings: 9 | New Findings: 0 | Resolved Findings: 0
Tested Project Files: 103
Detected Programming Languages: 1 (Java)

  • Check this box to manually trigger a scan

Finding Details

SeverityVulnerability TypeCWEFileData FlowsDate
MediumError Messages Information Exposure

CWE-209

AbstractSwaggerDeserializer.java:33

12023-08-16 07:18am
More info

try {
deserializedObject = objectMapper.readValue(jsonNode.traverse(), clazz);
} catch (JsonMappingException e) {
messageBuilder.append(new Message(e.getPathReference(), e.getMessage(), Severity.ERROR));
} catch (IOException e) {
messageBuilder.append(new Message("", e.getMessage(), Severity.ERROR));

1 Data Flow/s detected
View Data Flow 1

messageBuilder.append(new Message("", e.getMessage(), Severity.ERROR));

MediumError Messages Information Exposure

CWE-209

SwaggerParser.java:52

12023-08-16 07:18am
More info

if (output == null) {
output = new SwaggerDeserializationResult()
.message("The swagger definition could not be read");
}
}catch (Exception e) {
output.setMessages(Arrays.asList(e.getMessage()));

1 Data Flow/s detected
View Data Flow 1

output.setMessages(Arrays.asList(e.getMessage()));

MediumError Messages Information Exposure

CWE-209

SwaggerParser.java:230

12023-08-16 07:18am
More info

if (output != null) {
return output;
}
} catch (IOException e) {
if (System.getProperty("debugParser") != null) {
e.printStackTrace();

1 Data Flow/s detected
View Data Flow 1

MediumError Messages Information Exposure

CWE-209

Swagger20Parser.java:187

12023-08-16 07:18am
More info

}
return convertToSwagger(data, parentLocation);
} catch (Exception e) {
if (System.getProperty("debugParser") != null) {
e.printStackTrace();

1 Data Flow/s detected
View Data Flow 1

MediumError Messages Information Exposure

CWE-209

Swagger20Parser.java:156

12023-08-16 07:18am
More info

}
return convertToSwagger(data);
} catch (Exception e) {
if (System.getProperty("debugParser") != null) {
e.printStackTrace();

1 Data Flow/s detected
View Data Flow 1

MediumError Messages Information Exposure

CWE-209

SimpleSwaggerReader.java:37

12023-08-16 07:18am
More info

InputStream swaggerJson = httpClient.execute();
jsonNode = objectMapper.readTree(swaggerJson);
} catch (URISyntaxException | IOException e) {
messageBuilder.append(new Message("", e.getMessage(), Severity.ERROR));

1 Data Flow/s detected
View Data Flow 1

messageBuilder.append(new Message("", e.getMessage(), Severity.ERROR));

MediumError Messages Information Exposure

CWE-209

AbstractSwaggerDeserializer.java:31

12023-08-16 07:18am
More info

T deserializedObject = null;
try {
deserializedObject = objectMapper.readValue(jsonNode.traverse(), clazz);
} catch (JsonMappingException e) {
messageBuilder.append(new Message(e.getPathReference(), e.getMessage(), Severity.ERROR));

1 Data Flow/s detected
View Data Flow 1

messageBuilder.append(new Message(e.getPathReference(), e.getMessage(), Severity.ERROR));

MediumError Messages Information Exposure

CWE-209

PathUtils.java:30

12023-08-16 07:18am
More info

1 Data Flow/s detected
View Data Flow 1

MediumError Messages Information Exposure

CWE-209

SwaggerParser.java:140

12023-08-16 07:18am
More info

if (output != null) {
return output;
}
} catch (IOException e) {
if (System.getProperty("debugParser") != null) {
e.printStackTrace();

1 Data Flow/s detected
View Data Flow 1

@mend-for-github-com mend-for-github-com bot added the Mend: code security findings Code security findings detected by Mend label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: code security findings Code security findings detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants