CVE-2026-135641 in WP Job Portal Plugin
Summary
by MITRE • 11/26/2026
The WP Job Portal – AI-Powered Recruitment System for Company or Job Board website plugin for WordPress is vulnerable to Authentication Bypass leading to Account Takeover in all versions up to, and including, 2.7.2 This is due to a flaw in `WPJOBPORTALuser::__construct()` where the non-empty guard on the `wpjobportal-socialid` cookie is evaluated against the raw cookie value before `sanitize_key()` is applied — allowing a value composed entirely of characters outside `[a-z0-9_-]` to pass the guard, be reduced to an empty string by `sanitize_key()`, and be used as the literal value in a `WHERE socialid = ''` database query that matches the first portal account whose `socialid` column is empty. This makes it possible for unauthenticated attackers to be bound to an existing WP Job Portal Employer or Jobseeker account, gaining the ability to create, edit, and delete the victim's companies, job listings, resumes, and applications, as well as overwrite the linked WordPress user's first name, last name, and display name via the `saveuser`→`syncWPUserName()` path. Exploitation is viable on virtually all installations because every portal account not registered through the social-login flow retains the default empty `socialid` value; nonce checks on downstream actions such as `savecompany` and `saveuser` do not mitigate this issue because those nonces are minted within the already-hijacked session and validate against the attacker's own subsequent requests. Successful exploitation gives the attacker control of a distinct, already-privileged WP Job Portal Employer / Jobseeker (bound to a specific WordPress user) account; it does not promote the attacker's original account.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in WP Job Portal versions up to 2.7.2 represents a critical authentication bypass that facilitates direct account takeover, fundamentally undermining the security model of the recruitment system. This flaw resides within the core initialization logic of the plugin, specifically inside the `WPJOBPORTALuser::_construct()` method. The root cause is an improper sequence of data sanitization and validation checks applied to the `wpjobportal-socialid` cookie. In a secure implementation, input should be sanitized before any logical decisions are made based on that input. However, this plugin evaluates whether the cookie value is non-empty prior to applying the WordPress core function `sanitize_key()`. This ordering error creates a specific attack vector where an attacker can supply a crafted cookie value consisting entirely of characters outside the allowed alphanumeric and hyphen set `[a-z0-9-]`. Because these characters are not filtered out by the initial existence check, they pass through to the sanitization stage.
When `sanitize_key()` processes this malicious input, it strips all invalid characters, resulting in an empty string. This sanitized empty value is then used directly in a database query structured as `WHERE socialid = ''`. In WordPress-based systems utilizing custom tables or extended user metadata for job portals, accounts that are not created via the integrated social login flow typically have their `socialid` column left blank by default. Consequently, the crafted request matches the first portal account found with an empty social ID field. This effectively allows an unauthenticated attacker to hijack any existing employer or jobseeker account that has never logged in through a third-party social provider. The vulnerability is particularly severe because it does not require brute force or credential theft; instead, it exploits the default configuration state of nearly all standard installations where users register directly via email and password rather than OAuth flows.
The operational impact of this authentication bypass is extensive, granting the attacker full control over a privileged user account within the application context. Once authenticated as the victim, the attacker can perform actions that are typically restricted to verified employers or job seekers. This includes creating new companies, editing existing ones, and deleting them at will. Furthermore, the attacker gains the ability to post fraudulent job listings, edit legitimate postings, delete resumes submitted by candidates, and manage applications for open positions. Beyond these operational disruptions, the vulnerability poses a significant risk of data integrity compromise and identity manipulation. Through the `saveuser` action which triggers the internal `syncWPUserName()` function, an attacker can overwrite critical profile fields such as the first name, last name, and display name associated with the victim's linked WordPress user account. This capability allows for social engineering attacks or reputational damage by altering how the victim is identified within the platform.
From a technical classification perspective, this vulnerability aligns closely with CWE-287 Improper Authentication, as it involves bypassing authentication mechanisms to assume another identity. It also relates to CWE-601 URL Redirection to Untrusted Site (Open Redirect) in terms of session hijacking mechanics and CWE-94 SQL Injection if the empty string handling leads to unexpected query behaviors, though primarily it is an IDOR-like issue combined with logic flaws. In the context of MITRE ATT&CK, this maps to T1078 Valid Accounts, specifically the technique of using valid accounts obtained through other means or exploitation rather than initial compromise via phishing or credential stuffing. The persistence of access is maintained because subsequent actions such as saving company details (`savecompany`) or updating user profiles rely on nonces that are generated within the context of the already-hijacked session. These nonces validate against the attacker's own requests, meaning standard anti-CSRF protections fail to mitigate this specific initial bypass since the session itself has been compromised before those checks occur.
Mitigation strategies must address both immediate remediation and long-term architectural improvements. The most urgent step is for administrators of WP Job Portal installations to update the plugin to a version where `sanitize_key()` or equivalent strict validation occurs prior to any logical evaluation of the cookie value, ensuring that invalid characters are rejected before they can be reduced to an empty string. Until patched, site owners should consider implementing server-side WAF rules to block requests containing cookies with values composed exclusively of non-alphanumeric special characters if such patterns correlate with exploitation attempts. Additionally, enforcing mandatory social login integration or requiring explicit verification for accounts with empty `socialid` fields could reduce the attack surface by eliminating default-empty states that are exploitable. Regular auditing of user account creation methods and monitoring for unusual activity in employer dashboards can also help detect potential takeovers early.