Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate ipv4 address input #95

Open
bastelfreak opened this issue Sep 23, 2016 · 0 comments
Open

Validate ipv4 address input #95

bastelfreak opened this issue Sep 23, 2016 · 0 comments

Comments

@bastelfreak
Copy link
Member

We can insert a DHCP entry with a broken gateway:

curl -u admin:penis --data 'ip_address=178.63.176.36&mac=52:54:00:cf:5a:57&gateway=178.63.176.33=&networkmask=255.255.255.224' http://virtapi,de:5000/v1/dhcp
{
    "additional_statements": {},
    "dhcp_hostname": "virtapi.de",
    "gateway": "178.63.176.33=",
    "ip_address": "178.63.176.40",
    "mac": "52:54:00:cf:5a:58",
    "networkmask": "255.255.255.224"
}

this should be validated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant