DEV Community

OnaEiuspkz
OnaEiuspkz

Posted on

Photo Gallery by Ays Left a Public User Search on WordPress

Photo Gallery by Ays Left a Public User Search on WordPress

Photo Gallery by Ays before version 6.9.4 registered an AJAX action that ordinary visitors could reach. The ays_gpg_author_user_search handler did not enforce a nonce, capability, or login check, then passed its search value to get_users(). CVE-2026-135495 describes the result as unauthenticated WordPress user enumeration.

The vulnerability does not directly reset a password or read one. It removes a layer that makes account discovery harder. An attacker can test whether a username or email address exists, collect display names, and build a target list for credential attacks or social engineering.

Why a read-only endpoint still matters

WordPress exposes some public author information by design. The issue here is a plugin endpoint that accepts arbitrary search criteria and returns account matches without authorization. That gives more control than browsing a published author archive. The CVE record says the endpoint can list all users or confirm a specific username or email.

The affected plugin branch is fixed in 6.9.4. The CVE is rated 5.3 in CVSSv3.1 and 6.9 in CVSSv4.0. Both scores describe a confidentiality-only impact with network reach and no required privileges. The endpoint is a convenience for selecting authors in a gallery workflow. Public access turns that convenience into an account-discovery service.

Look for the action in logs

Web-server logs may show admin-ajax.php requests with action=ays_gpg_author_user_search. URL query strings, request bodies, WAF events, and plugin audit logs can provide the clue, depending on how the site records POST data. Search around the deployment time and for bursts of different search terms from one source.

Do not publish a list of matched usernames in a ticket. Preserve the source address, request count, and time range, then compare the result with authentication logs. A user-enumeration request is not proof of a later compromise, but repeated account probing followed by failed logins or password resets deserves investigation.

If the endpoint was exposed, review administrator and editor accounts for unexpected password-reset requests or login attempts. Enable multi-factor authentication for privileged users, remove dormant accounts, and avoid exposing email addresses as login identifiers where the site can support that policy.

Upgrade and block the route

Update Photo Gallery by Ays to 6.9.4 or later. Clear any plugin cache or optimization layer that could keep old JavaScript references alive. In staging, send an unauthenticated request to the old action and confirm that it now refuses the search. Test the legitimate admin author search to ensure the fix did not break the gallery editor.

A WAF rule can block requests to the old action while an update is pending, but it is a temporary control. Attackers can alter query encoding, and a rule may not cover every request shape. Disable the plugin if the site cannot be patched and the feature is not needed.

After the update, review the user table rather than only the plugin version. The account list may contain service users with weak passwords or names that were never intended to be discoverable. Remove those that are unnecessary and rotate credentials that appeared in user-facing metadata.

References

Top comments (0)