Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Code Security Finding: Server Side Request Forgery (CWE-918, High Severity) in HttpServiceImpl.java:41 #72

@joshn-whitesource-app

Description

@joshn-whitesource-app

Code Security Finding

This finding was first detected on 2024-02-07 06:59pm GMT and is still present in the last scan performed on 2024-02-07 06:58pm GMT:

SeverityVulnerability TypeCWEFileData Flows
HighServer Side Request Forgery

CWE-918

HttpServiceImpl.java:41

1
Vulnerable Code

* Redirects: Disable followRedirects.<p>
* User-Agent: Java/1.8.0_102 <p>
*/
public String RequestHttpBanRedirects(String url, HttpHeaders headers) {
HttpEntity<String> entity = new HttpEntity<>(headers);
ResponseEntity<String> re = restTemplateBanRedirects.exchange(url, HttpMethod.GET, entity, String.class);

1 Data Flow/s detected
Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Server Side Request Forgery Training

● Videos

   ▪ Secure Code Warrior Server Side Request Forgery Video

🏴 Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions