Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-rm67-g9ch-vxff — poweradmin

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-284 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Poweradmin: Broken access control (IDOR): any zone owner can modify DNS records in zones they do not own

Affected software

  • Product: Poweradmin (web front-end for PowerDNS)
  • Version tested: master, commit 7f28c3a97 (also reachable in the 4.x release line — the record-edit code is the same)
  • Component: record editing (web UI)
  • Vulnerability type: Broken Access Control / Insecure Direct Object Reference

Severity

Any authenticated user who owns at least one zone can tamper with records in every other zone on the server. In a shared/multi-tenant Poweradmin install this is effectively a cross-tenant DNS takeover.

Summary

When you save a record edit, Poweradmin checks whether you're allowed to touch the record by looking at a zone id you send in the POST body, but it then applies the change to a record id you also send in the POST body. Nothing checks that the record id actually belongs to that zone id. So you point the permission check at a zone you legitimately own, point the record id at somebody else's record, and the update goes through.

A low-privilege "Editor" who only owns attacker.example was able to overwrite a record living in victim.example (owned by the admin), even though the same account gets a flat "you do not have permission to access this zone" if it tries to open that zone directly.

Where the bug is

The core mistake is in RecordManager::editRecord() in lib/Domain/Service/Dns/RecordManager.php:

```php

// line 298 – ownership is checked against the zone id from the request

$user_is_zone_owner = UserManager::verifyUserIsOwnerZoneId($this->db, $record['zid']);

...

// line 346 – but the update targets the record id from the request

$this->backendProvider->editRecord(

$record['rid'], $name, $record['type'], $content, $validatedTtl, $validatedPrio, $record['disabled']

);

```

$record['zid'] and $record['rid'] are both taken straight from the submitted form. The permission gate uses one, the write uses the other, and they're never tied together.

The backend write has no zone scoping at all — lib/Infrastructure/Service/SqlDnsBackendProvider.php line 235:

```php

$stmt = $this->db->prepare(

"UPDATE $recordsTable SET name = ?, type = ?, content = ?, ttl = ?, prio = ?, disabled = ? WHERE id = ?"

);

$stmt->execute([$name, $type, $content, $ttl, $prio, $disabled, $recordId]);

```

It's WHERE id = ? on the record id and nothing else, so any record in the database is fair game.

The validation layer doesn't save it either. DnsRecordValidationService::validateRecord() (lib/Domain/Service/DnsRecordValidationService.php, around line 97) uses the zone id only to look up the zone name for hostname validation. It never verifies the record id lives in that zone.

There are two request paths that reach this same sink:

1. Multi-record save — EditController::saveRecords() (lib/Application/Controller/EditController.php, ~line 571) loops over $_POST['record'] and hands each entry's rid/zid to editRecord() verbatim. The controller's run() only permission-checks the zone id in the URL (~line 204), not the zone id inside each record row.

2. Single-record save — EditRecordController::saveRecord() reads $_POST['rid'] and forwards the whole $_POST (including the attacker-chosen zid) into editRecord().

For comparison, the delete path does it correctly. DeleteRecordController (~line 101) derives the zone id from the record id on the server side with getZoneIdFromRecordId() and checks permission against that. EditCommentController also uses the URL zone id for both the check and the write. So this really is an oversight in the edit path, not a deliberate design choice — the safe pattern already exists elsewhere in the same codebase.

Proof of concept

Setup (two accounts, two zones):

  • attacker — a normal user on the "Editor" permission template (zone_content_edit_own_as_client, i.e. can only edit records in zones it owns). Owns attacker.example, which is zone/domain id 3.
  • admin — owns victim.example, which is zone/domain id 2. That zone contains the record www.victim.example A 1.1.1.1 with record id 5.

Steps:

1. Log in as attacker. Confirm the access control is actually there: browse to /zones/2/edit (victim.example). You get "You do not have permission to access this zone." Good — you genuinely can't edit that zone the normal way.

2. Open your own zone's edit page, /zones/3/edit, and start a save (change any field and submit) with your intercepting proxy on. Catch the POST /zones/3/edit request. It already carries a valid CSRF _token and a valid serial for your zone, so don't touch those.

3. Edit the record block in that request so it targets the victim's record while keeping your own zone id:

```

POST /zones/3/edit HTTP/1.1

Host: localhost:8080

Cookie: PHPSESSID=<your attacker session>

Content-Type: application/x-www-form-urlencoded

_token=<the valid token from step 2>&serial=<the valid serial from step 2

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

GHSA-rm67-g9ch-vxff is classified as CWE-284: Improper Access Control. The software does not restrict an action to the actors that should be allowed to perform it.

Affected software

GHSA-rm67-g9ch-vxff is recorded against 1 package.

  • poweradmin/poweradmin (from 4.3.0 up to 4.3.4)

Timeline and source

Published on 24 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)
github.com (Web)

Other advisories for this package

poweradmin/poweradmin has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-284: Improper Access Control) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
CWE CWE-284
Public Exploit ✅ No
Source OSV
Published 2026-07-24
Updated 2026-08-20
Modified 2026-07-24
Fix URL N/A

Affected Packages

Software From version Fixed in
poweradmin/poweradmin 4.3.0 4.3.4

Similar Threats

Site Security Check

Is poweradmin part of your stack?

GHSA-rm67-g9ch-vxff is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated
✓