Sha256: 5991e3fc95365bd8dcfd6e6bb7d371e01fe6c11d27ea7d679b0d09dfb2e32af0

Contents?: true

Size: 1.37 KB

Versions: 6

Compression:

Stored size: 1.37 KB

Contents

---
title: Invalid IP Address binding
permalink: /invalid-ip-addr-binding/
layout: default
---

# Invalid IP Address binding

## What it it?

Binding an IP address to a server or service means authorizing connections incoming from those networks. This allows to limit what kind of incoming connections a server may or may not accept. Binding the 0.0.0.0 IP address to a service means that any connection from any network is accepted.

### Example
Using Puppet to configure a MySQL database bind address:
```puppet
  class { 'mysql::server':
    config_hash => {
                     'bind_address' => '0.0.0.0'
                   }
  }
```
This configuration means that the database accepts connections from anywhere, including remote clients if it's connected to the internet.


## How can it be exploited?

A server or service that's open to all kinds of connections it's more exposed to possible attacks coming from non intended networks. A malicious attacker can try to gain access to it just by using it's own network or other compromised networks across the globe.

## How to avoid it?

Properly configuring binding addresses means that the server should only accept connections from trusted networks known to use the service. This ensures a greater level of control and also protection, as an attacker would know have an extra obstacle in trying to gain access first to one of those networks.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-sec-lint-0.5.13 docs/invalid-ip-addr-binding.md
puppet-sec-lint-0.5.11 docs/invalid-ip-addr-binding.md
puppet-sec-lint-0.5.10 docs/invalid-ip-addr-binding.md
puppet-sec-lint-0.5.9 docs/invalid-ip-addr-binding.md
puppet-sec-lint-0.5.8 docs/invalid-ip-addr-binding.md
puppet-sec-lint-0.5.7 docs/invalid-ip-addr-binding.md