Exploit database

GH-6349a2cafc034d1cb254d8cb79cc8cde

pvharmo2/gha-lab-fb6df3d456

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-46820

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files47
pvharmo2/gha-lab-fb6df3d456Revision 300c7be959e8

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/RadioNodeList.php

PHP · 1,205 bytes
<?php
namespace Gt\Dom;

/**
 * @property string $value If the underlying element collection contains radio buttons, the RadioNodeList.value property represents the checked radio button. On retrieving the value property, the value of the currently checked radio button is returned as a string. If the collection does not contain any radio buttons or none of the radio buttons in the collection is in checked state, the empty string is returned. On setting the value property, the first radio button input element whose value property is equal to the new value will be set to checked.
 */
class RadioNodeList extends NodeList {
	/** @link https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value */
	public function __prop_get_value():string {
		foreach($this as $node) {
			if($node->type !== "radio") {
				return "";
			}

			if($node->checked) {
				return $node->value;
			}
		}

		return "";
	}

	/** @link https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value */
	public function __prop_set_value(string $value):void {
		foreach($this as $node) {
			if($node->type !== "radio") {
				return;
			}

			if($node->value === $value) {
				$node->checked = true;
			}
		}
	}
}