====== Vibemosphere Security Plugin ====== Scans the JARs of the web applications, Vibecat (nested Tomcat), the ELO IndexServer plug-in directory and external paths for known vulnerabilities (CVE), with an Excel export and a REST API. ^ Id | ''security'' | ^ Role | ''security'' - needed for the page and the REST API (administrators always may) | ^ Page | **Plugins > Open** (overlay with an X at the top right) or ''/plugins/security/'' | ^ REST | ''/api/plugins/security/...'' and, for callers with the role, ''/plugins/security/...'' | ===== Open the configuration ===== In the administration open **Plugins**, select the row of this plug-in and press **Open**. The page opens in an overlay dialog: close it with the **X** at the top right, with Esc or by clicking outside; //Open in a new tab// next to the title shows it full size. {{vibecat:plugin-security.png?900|Vibemosphere Security Plugin: the plug-in page in its overlay dialog}} ===== Step by step ===== - The page scans web applications, Vibecat itself, ELO IndexServer plug-ins and external paths you add. Press **Scan**; the report lists each JAR with identified version and known vulnerabilities (CVE, CVSS, fixed version, links). **Export to Excel** writes the same. ===== The page in detail ===== {{vibecat:plugin-security-full.png?900|Vibemosphere Security Plugin: the whole page (playground instance)}} The page has these sections: **Scan**, **What is scanned**, **External paths**, **Lookup**. ===== Fields and columns ===== ^ Label ^ Meaning ^ | Automatic scan every (hours, 0 = only on demand) | | | OSV.dev | | | Maven Central search | | | Maven repository (versions) | | ===== Actions ===== * **Scan now** * **Save settings** ===== Notes from the page ===== * Scans the libraries (JARs) for known vulnerabilities: CVEs from OSV.dev with the link to the original report. The result is on the Reports page of the administration (with the Excel export) and through REST for the role security . Documentation * Data sources of the ELO repositories (none ticked: every data source is tried, a database without the ELO table is skipped) * Service addresses OSV.dev Maven Central search Maven repository (versions) ===== Reference ===== Finds the libraries (JARs) in your installation and reports the **known vulnerabilities** (CVE) of the versions you run, with the link to the original report. The same method as the library screening of the ECM Admin Center: the Maven coordinates of a JAR come from its ''pom.properties'' or, if it has none, from its SHA-1 at Maven Central; the vulnerabilities come from [[https://osv.dev|OSV.dev]] (GitHub advisories, the Tomcat security reports, NVD). ==== What is scanned ==== ^ Place ^ What ^ | Web applications | The WAR that is deployed for each web application (the source and strategy of the application decide): every JAR inside, and, for an exploded application, its folder. | | Vibecat | ''runtime'' (the Tomcat embed jars = the **nested Tomcat**), ''lib'', ''plugins'', ''vibecat.jar''. The version of the running Tomcat is checked even when no jar of it is found. | | ELO | The IndexServer plug-in directory. Its path is the option ''osgiPluginDirectories'' in the table ''eloixopt'' of the repository database; the plug-in reads it through the **data sources** of the administration (the ones you tick, or all: a database without this table is skipped). Where an ELO web application is ''ix.war'', the folder ''ix-plugins'' next to it is scanned as well. A directory of another machine is scanned when it is reachable (UNC path); otherwise the report says so. | | External paths | Any folder (searched for JAR, WAR and EAR files), WAR or JAR you list on the plug-in page. | ==== Report ==== The administration page **Reports** shows the result: one row per library with the worst severity, the CVEs (each a link to the original report: the issue or advisory the vulnerability record points to, else the NVD entry) and where the library was found. A row opens the details: every CVE with severity, CVSS score, the version that fixes it and the links //Report//, //Advisory//, //NVD// and //OSV//. **Export to Excel** writes a workbook (Apache POI) with the sheets Summary, Libraries, Vulnerabilities (links as hyperlinks) and Places. The same page has the **error report** of the Cat Error Server Pages plug-in. A scan runs in the background (a few minutes for a big WAR: the SHA-1 lookups are only needed for the JARs that carry no pom.properties; results are cached for 24 hours). It starts on demand (**Scan now**) and every //n// hours (default 0 = manual). Only SHA-1 and Maven coordinates leave the machine. ==== REST (role ''security'') ==== Through the plug-in valve (the ports of the web applications) or the administration port: ''/plugins/security/...'' resp. ''/api/plugins/security/...''. HTTP Basic with a user that has the role **security** (add it on the Users page; administrators may too). ^ Call ^ Result ^ | ''GET /status'' | running, message, progress, last scan | | ''POST /scan'' | starts a scan (409 when one is running); poll ''/status'' | | ''GET /summary'' | the counters and the nested Tomcat | | ''GET /report'' | the report: libraries with their vulnerabilities. Parameters: ''severity'' (lowest: critical, high, medium, low), ''library'' (text), ''vulnerableOnly=true'' | | ''GET /vulnerabilities'' | one row per library and vulnerability (same parameters) | | ''GET /report.xlsx'' | the Excel workbook | | ''GET%%|%%PUT /settings'' | the settings (PUT: administrators) | curl -u scanner:secret -X POST https://host:8443/plugins/security/scan curl -u scanner:secret "https://host:8443/plugins/security/vulnerabilities?severity=high" curl -u scanner:secret -o report.xlsx https://host:8443/plugins/security/report.xlsx A vulnerability: ''cve, id, aliases, severity (CRITICAL / HIGH / MEDIUM / LOW), score (CVSS 3), summary, fixed[], reportUrl, advisoryUrl, nvdUrl, osvUrl, references[]''. ==== Limits ==== * OSV matches the exact Maven coordinates and version: a JAR that is not at Maven Central (own libraries, ELO jars) is listed as //not identified// and cannot be checked. * A library that is shaded into another jar is found through the ''pom.properties'' it left behind; one without is not. * The report says a version //is affected// by a record; whether the vulnerable code is reachable in your installation is for you to judge. [[vibecat:plugins:start|All plug-ins]]