Skip to content

Commit

Permalink
Removed greedy matching from a regex to address DOS concern. (opensea…
Browse files Browse the repository at this point in the history
…rch-project#1006)

Signed-off-by: Chris Helma <chelma+github@amazon.com>
  • Loading branch information
chelma authored Sep 24, 2024
1 parent 92bee7f commit 2107ccb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@Slf4j
public class InvalidResponse extends RfsException {
private static final Pattern unknownSetting = Pattern.compile("unknown setting \\[(.+)\\].+");
private static final Pattern unknownSetting = Pattern.compile("unknown setting \\[(.+?)\\].+");
private static final ObjectMapper objectMapper = new ObjectMapper();
private final HttpResponse response;

Expand Down

0 comments on commit 2107ccb

Please sign in to comment.