Skip to content
RCE Write-up Intermediate

Blind OS Command Injection with Out-of-Band DNS Interaction

The feedback submission feature passed the email parameter unsafely to a shell command, allowing blind OS command injection. An attacker could execute arbitrary commands and confirm execution via out-of-band DNS interactions, even without seeing command output.

infosecwriteups.com

Published on infosecwriteups.com

This lab demonstrates a blind OS command injection vulnerability within a feedback submission feature. The application constructs and executes a shell command using user-supplied input without proper sanitization.

Bash Overflow, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the application constructed a shell command using unsanitised user input from the email parameter.

Impact

An attacker could execute arbitrary commands on the backend server and exfiltrate information such as the executing user via DNS queries, even when command output is not directly observable.

What the attacker needed

Access to the feedback form; a Burp Collaborator or similar OOB service

How it was found

  1. Open the lab and navigate to the Submit feedback feature, filling all required fields with arbitrary values.
  2. Open Burp Suite, locate the request in HTTP history, and send it to Repeater.
  3. Inject a payload into the name parameter to force a DNS lookup to a Burp Collaborator domain.
  4. Send the request and poll the Collaborator; no interaction is observed.
  5. Inject the same payload into the email parameter and send the request.
  6. Poll the Collaborator again; a DNS interaction is recorded, confirming command execution.

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 write-up has not been written yet. The Original tab links to the source.

The application took user input from a feedback form and put it directly into a system command without cleaning it. An attacker could add extra commands that the server would run. Because the output wasn't shown, the attacker used a DNS lookup to an external service to confirm the commands ran.

What is RCE?

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

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.