=== Hacktiba Inspector ===
Contributors: hacktiba
Tags: security, cve, vulnerabilities, inventory
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 0.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A read-only snapshot of installed plugins and known CVEs, by Hacktiba Labs. No active scanning, AI or automatic remediation.

== Description ==

Hacktiba Inspector provides a minimal administrative inventory of regular installed plugins, their versions and known CVE matches. It does not test or modify the website, execute downloaded code or run scheduled jobs. All included features are free and open source.

The local inventory is available immediately, with search and pagination (10, 25 or 50 items per page). Only visible, previously unconsulted items are queried after consent; changing pages or search filters changes the pending selection. Unchecking consent stops new requests, but an in-flight request may finish. Summary category counts cover all installed plugins; CVE counters include completed lookups only. Each item shows its lookup status. Results from visited pages are retained for the current view. An administrator can explicitly authorize the external vulnerability lookup for the current view. Version comparison takes place locally. Results are indicative, not proof of exploitation or an assurance of security. Unknown, malformed or unavailable data is shown as inconclusive.

On a single site only authenticated users with the administrator role and the manage_options and activate_plugins capabilities can access the inventory. On Multisite only super administrators with manage_network_plugins can access the network administration panel. Activation status on Multisite refers to network activation only. Network activation is required to make the panel available in Network Admin; activating on an individual site does not expose the panel.

= Local plugin classification =

A built-in, non-exhaustive slug catalog identifies known security plugins; all remaining items are grouped as general, including unknown or private plugins. General does not mean verified non-security. Four counters show general and security plugin totals and plugins in each group with current CVEs among completed lookups. A category filter is included. This does not authenticate plugin origin, inspect configuration or verify that security protections are operational. Classification is local and does not add external requests. Multisite activation refers to network activation only.

= External service and privacy =

This plugin uses the independent WPVulnerability public API (https://www.wpvulnerability.net/plugin/{slug}/) for vulnerability data. Requests are made only after the administrator explicitly authorizes the lookup for the current view. Only the inferred plugin slug is included in the request path. This may include private or commercial plugin slugs when their Update URI header is empty; an empty header does not establish public origin. Plugins with explicitly non-WordPress.org update sources or ambiguous slugs are excluded. The installed version, site URL, credentials and site content are not intentionally sent. The service receives normal connection metadata, such as the source IP address. The API requires no account or key. Normalized CVE matches are cached locally for up to six hours. Cache hits do not consume rate-limit slots. When the local limit is reached, the open panel pauses and retries after the indicated delay, only while consent remains enabled. No scheduled background queries or tracking are implemented.

* Service: https://www.wpvulnerability.com/
* API documentation: https://docs.wpvulnerability.com/
* Data license and disclaimer: https://www.wpvulnerability.com/license/
* Service usage information and terms: https://www.wpvulnerability.com/faq/
* Privacy policy: https://www.wpvulnerability.com/privacy/

= Scope and limitations =

Only regular installed plugins (active or inactive) are inventoried. Themes, WordPress core, must-use plugins, code analysis and non-CVE vulnerabilities are not covered. Identity is inferred from the local folder or file slug and is not authenticated. Explicit non-WordPress.org update sources and ambiguous slugs are excluded from lookups. Private, renamed or modified plugins may not match public advisories accurately. Version ranges use PHP version comparison; unusual version schemes may be inconclusive. The data source can contain errors or omissions.

= Source code and development =

The distributed inspector.js and inspector.css are the original, editable, unminified source files. All PHP source files are also included in this package. No compilation, bundling, minification, build tools, or bundled third-party JavaScript/CSS libraries are required. The JavaScript uses the WordPress-provided wp.i18n API. Developers can edit these files directly and test changes in a local WordPress installation.

== Installation ==

1. Upload the plugin ZIP using Plugins > Add New > Upload Plugin.
2. Activate it (network-activate on Multisite) and open Hacktiba Inspector in the administration menu (Network Admin on Multisite).
3. Review the local inventory. Authorize the external lookup only if you want CVE information.

== Frequently Asked Questions ==

= Does this plugin scan or exploit the site? =

No. It reads the local plugin inventory and optionally queries a public vulnerability database.

= Does zero known CVEs mean a plugin is secure? =

No. This is a snapshot of known data, not a security certification.

= Does this plugin require an AI service or paid account? =

No.

== Changelog ==

= 0.0.1 =
* Initial release: read-only administrative inventory and consent-based CVE lookup.
* Bounded local cache, restrictive access controls and external response validation.

* Corrects the Hello Dolly slug, supports the provider directory link for identification and separates missing data from valid empty results.
* Responsive inventory cards, accessible controls, local search, pagination and unique CVE counter.
* Rejects an empty JSON object where a vulnerability list is expected.

* English source strings with native WordPress translation support. Advisory titles remain in the provider language.
* Per-plugin Total Known CVEs (All Versions): unique CVE identifiers returned by the provider, including current CVEs, independently of affected version ranges. Records without CVE identifiers are excluded; unavailable means the lookup could not be validated.

* Current CVEs are listed directly as selectable plain-text identifiers with available severity/CVSS. The total across all versions is displayed as a separate count. Unknown data is never represented as zero.

* No clickable external links in the administrative panel. Provider documentation links remain in this README. Browser AJAX requests are same-origin and reject redirects.

* Defensive HTTP settings, per-site limit of five external request attempts in a rolling 60-second window (under the existing request lock), stricter cache and JSON validation, and a browser request timeout. The network security boundary also depends on WordPress, DNS, hosting, and installed code; this is not a security certification.

* Advisory titles are decoded and normalized as plain text, with no clickable links or HTML rendering. The total count is independent of the current-version classification; awaiting and unavailable states are distinct from a numeric count.

* Local security catalog, general fallback, category filter and four compact inventory counters.
