mirror of
https://github.com/nsupdate-info/nsupdate.info.git
synced 2026-04-25 00:25:58 +03:00
[PR #576] Fix ssrf validation #574
Labels
No labels
bug
bug
duplicate
easy
easy
enhancement
enhancement
invalid
needs help
pull-request
scalability
security
task
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsupdate.info-nsupdate-info#574
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nsupdate-info/nsupdate.info/pull/576
Author: @whitesquirrell
Created: 4/14/2025
Status: 🔄 Open
Base:
master← Head:master📝 Commits (1)
d612cd5Fix ssrf validation📊 Changes
1 file changed (+23 additions, -1 deletions)
View changed files
📝
src/nsupdate/main/forms.py(+23 -1)📄 Description
Summary
This pull request addresses a potential Server-Side Request Forgery (SSRF) vulnerability in the
EditDomainForm.clean()method.Details
Currently, the form accepts arbitrary
nameserver_ipinputs, which are passed to thecheck_domain()function. This leads to dynamic DNS update attempts to the specified IP address, including internal ones (e.g., 127.0.0.1). As a result, attackers could potentially:Fix
This patch adds validation using Python’s
ipaddressmodule to reject loopback, private, and reserved IP addresses before performing any DNS update.Impact
This prevents misuse of the DNS update mechanism and mitigates the risk of SSRF attacks via internal IP injection.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.