1u.ms

What is this

This is a small set of zero-configuration DNS utilities for assisting in detection and exploitation of SSRF-related vulnerabilities. It provides easy to use DNS rebinding utility, as well as a way to get resolvable resource records with any given contents.

The tool does not employ any novel techniques and is not unique in any sense. All features are trivial to implement and can be easily found in other similar tools.

The service is currently run at the 1u.ms domain (and its' subdomains).

Usage

A-record

If you want to get a record that resolves to an IP, use the following subdomain:

make-<IP>-rr.1u.ms

For example, domain make-1.2.3.4-rr.1u.ms resolves to 1.2.3.4:

$ host -t A make-1.2.3.4-rr.1u.ms
make-1.2.3.4-rr.1u.ms has address 1.2.3.4

You can use dashes instead of dots as long as the IP is valid:

$ host -t A make-1-2-3-4-rr.1u.ms
make-1-2-3-4-rr.1u.ms has address 1.2.3.4

You can place some unique prefix/suffix before make or after rr (dots are allowed):

$ host -t A a.prefix-make-1-2-3-4-rr-and.a-suffix.1u.ms
a.prefix-make-1-2-3-4-rr-and.a-suffix.1u.ms has address 1.2.3.4

Multiple records can be separated by -and-:

$ host -t A make-1-2-3-4-and-5-6-7-8-rr.1u.ms
make-1-2-3-4-and-5-6-7-8-rr.1u.ms has address 1.2.3.4
make-1-2-3-4-and-5-6-7-8-rr.1u.ms has address 5.6.7.8

DNS rebinding

In the context of SSRF bugs, DNS rebinding is a well-known technique targeting TOCTOU type of vulnerabilities during IP blacklisting or whitelisting. It is performed using a domain that resolves in a legit IP during the first request (check) and to the forbidden one during the second request (use).

To generate a domain name with this behavior, use the following syntax:

make-<IP1>-rebind-<IP2>-rr.1u.ms

For example, the domain name make-1.2.3.4-rebind-169.254-169.254-rr.1u.ms will first resolve to 1.2.3.4 and then to 169.254.169.254:

$ host -t A make-1.2.3.4-rebind-169.254-169.254-rr.1u.ms
make-1.2.3.4-rebind-169.254-169.254-rr.1u.ms has address 1.2.3.4
$ host -t A make-1.2.3.4-rebind-169.254-169.254-rr.1u.ms
make-1.2.3.4-rebind-169.254-169.254-rr.1u.ms has address 169.254.169.254

The logic behind the feature is as follows:

You can use prefixes before make- and suffix after -rr in order to uniqualize the domain name (e.g. prefix-make-1.2.3.4-rebind-169.254-169.254-rr-suffix.1u.ms). The timeouts are separate for each domain name.

AAAA-record

To make up a domain that resolves only to an IPv6 address, use the following syntax:

make-ip-v6-<IP>-rr.1u.ms

Colons must be replaced with letter c. As always, random prefix and suffix can be used:

$ host -t AAAA prefix-make-ip-v6-1c2cc3-rr-suffix.1u.ms
prefix-make-ip-v6-1c2cc3-rr-suffix.1u.ms has IPv6 address 1:2::3

CNAMEs

By default, unparsable addresses are considered as CNAMEs:

$ host make-example.com-rr.1u.ms
make-example.com-rr.1u.ms is an alias for example.com.
...

To force a domain to be a CNAME, add cname- prefix:

$ host -t A make-cname-example.com-rr.1u.ms
make-cname-example.com-rr.1u.ms is an alias for example.com.
...

Note that CNAMEs without dots are considered as subdomains with unrelated sub.sh.je domain (stupid implementation detail), which is probably not what you want:

$ host -t A make-localhost-rr.1u.ms
make-localhost-rr.1u.ms is an alias for localhost.sub.sh.je.

Other record types

If the thing between make- and -rr is a parsable record, it is returned for any type of request.

$ host -t TXT make-blahblah-rr.1u.ms
make-blahblah-rr.1u.ms descriptive text "blahblah"

Hex encoding

You can encode the contents of a record in hex and add a hex- prefix after make-:

$ host -t A make-hex-312e322e332e34-rr.1u.ms
make-hex-312e322e332e34-rr.1u.ms has address 1.2.3.4

Log viewing

The log of all DNS requests is public. There are the following endpoints:

Contacts & FAQ

If you have any questions or suggestions in mind, feel free to contact me via @neexemil on Telegram.

Is this tool free for any type of usage?

Sure.

But what if I use it during some illegal adventure or DDoS it with a huge amount of traffic?

These are awful ideas which I don't like.