Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@
<version>${fortify.version}}</version>
</dependency-->

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>[4.0.9,)</version>
</dependency>
</dependencies>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Insecure Web App (IWA)
import java.nio.file.Paths;
import java.security.Principal;
import java.util.*;
import org.springframework.web.util.HtmlUtils;

/**
* Controller for product pages
Expand Down Expand Up @@ -88,7 +89,7 @@ String GetControllerName() {
@ResponseBody
public ResponseEntity<String> getKeywordsContent(@Param("keywords") String keywords) {

String retContent = "Product search using: " + keywords;
String retContent = "Product search using: " + HtmlUtils.htmlEscape(HtmlUtils.htmlUnescape(String.valueOf(keywords)));

return ResponseEntity.ok().body(retContent);
}
Expand Down