HexBrain

curl · Report #1572120

curl "globbing" can lead to denial of service attacks

N/Astatus
lowseverity
1upvotes
16 Jun 2022disclosed

How it was found

Summary:

[add summary of the vulnerability]

The curl "globbing" allows too much scope, which can cause the server to be denied service or used to attack third-party websites. The globbing allow [1-9999999999999999999] to parse in the url. So when curl request for 'http://127.0.0.1/[1-9999999999999999999]', the can cause 300 requests in the server.

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. Listen 8000 port: python -m SimpleHTTPServer 8000
  2. command: nohup ./curl -vv 'http://127.0.0.1:8000/[1-9999999999999999999]/' &
  3. Check the server resource process. There are a lot of network requests and CPU consumption.

Supporting Material/References:

[list any additional material (e.g. screenshots, logs, etc.)]

  • [attachment / reference]

Impact

With this function, the resources of the server running curl request can be excessively consumed or a large number of URL accesses to other websites can be initiated, resulting in denial of service.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original