This is an automated email from the ASF dual-hosted git repository. janhoy pushed a commit to branch SOLR-18193-security-reporting-workflow in repository https://gitbox.apache.org/repos/asf/solr-site.git
commit 797bb5167bcb710a614b0834b4a7248cbf65f2f9 Author: Jan Høydahl <[email protected]> AuthorDate: Thu Apr 9 15:07:38 2026 +0200 SOLR-18193: Restructure security pages and add reporting workflow - Rewrite security.html as a concise hub page with callout box, linking to three new sub-pages - Add security-news.html: full paginated history of CVE advisories (sub-tab of the News section); extend combined_posts plugin - Add security-dependency-cves.html: VEX explanation, full dependency CVE table, and VEX JSON download button - Add security-reporting.html: PMC vulnerability reporting procedure with submission rules, workflow diagram (PNG placeholder), timeline table, five canned email response templates (A-E), and JIRA process - Add Security News tab to posts.html subnav - Add workflow diagram PNG --- .claude/settings.local.json | 30 ++ CLAUDE.md | 152 ++++++++ SOLR_SECURITY_WEBSITE_PLAN.md | 391 +++++++++++++++++++++ content/pages/security-dependency-cves.md | 21 ++ content/pages/security-reporting.md | 200 +++++++++++ content/pages/security.md | 77 ++-- pelicanconf.py | 2 +- plugins/combined_posts/__init__.py | 64 +++- .../solr/static/images/security-vuln-process.png | Bin 0 -> 222952 bytes themes/solr/templates/posts.html | 1 + .../solr/templates/security-dependency-cves.html | 65 ++++ themes/solr/templates/security-news.html | 53 +++ themes/solr/templates/security-reporting.html | 61 ++++ themes/solr/templates/security.html | 94 ++--- 14 files changed, 1095 insertions(+), 116 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 000000000..31808ab7e --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,30 @@ +{ + "permissions": { + "allow": [ + "Bash(./build.sh:*)", + "Bash(python -m pelican:*)", + "Bash(pip install:*)", + "Bash(cat:*)", + "WebSearch", + "WebFetch(domain:docs.getpelican.com)", + "WebFetch(domain:github.com)", + "Bash(python3:*)", + "Bash(for i in posts posts2 posts3 posts4 posts5 posts6 posts7 posts8 posts9)", + "Bash(do)", + "Bash(if grep -q \"ENABLE_REMOTE_JMX\" /Users/janhoy/git/solr-site/output/$i.html)", + "Bash(then)", + "Bash(echo:*)", + "Bash(break)", + "Bash(fi)", + "Bash(done)", + "WebFetch(domain:issues.apache.org)", + "Bash(xargs ls:*)", + "Bash(grep -E \"\\\\.html$\")", + "Bash(grep -E \"\\\\.svg$\")", + "Bash(git:*)", + "WebFetch(domain:www.apache.org)" + ], + "deny": [], + "ask": [] + } +} diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 000000000..3d7d16ed1 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,152 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Overview + +This is the source code repository for the Apache Solr website (solr.apache.org). The site is built using Pelican (Python-based static site generator) and deployed through GitHub Actions to Apache infrastructure. + +## Build and Development Commands + +### Building the site locally + +The easiest way is with Docker (recommended): + +```bash +./build.sh -l +``` + +This starts a live-reloading development server at http://localhost:8000. + +For a one-time build without live reload: + +```bash +./build.sh +``` + +The build script automatically: +- Creates a Docker image with Python and all dependencies +- Rebuilds the image if `requirements.txt` changes +- Outputs the site to `output/` directory + +### Manual installation (without Docker) + +If you need to build without Docker: + +```bash +# Create virtual environment +python3 -m venv myenv +source myenv/bin/activate # or `myenv\Scripts\activate` on Windows + +# Install dependencies +pip install -r requirements.txt + +# Build site +pelican content -o output + +# Build with live reload +pelican content -o output --autoreload --listen +``` + +## Deployment Workflow + +**CRITICAL**: Never commit directly to `production` branch. All changes must go through `main` first. + +1. **Development**: Make changes and commit to feature branches, create PRs to `main` +2. **Staging**: When merged to `main`, GitHub Actions automatically builds and deploys to https://solr.staged.apache.org +3. **Production**: After verifying staging, merge `main` → `production` (use merge commit, not squash) to deploy to https://solr.apache.org + +Small edits can be made directly in GitHub's web UI. + +## Repository Structure + +### Content Organization + +- `content/pages/` - Main website pages (Markdown files) + - `content/pages/blogposts/` - Blog posts + - `content/pages/operator/` - Solr Operator documentation +- `content/images/` - Images and static assets +- `content/solr/` - Solr-specific content +- `content/doap/` - DOAP project description files + +### Themes and Templates + +- `themes/solr/` - Custom Pelican theme for Solr site + - `themes/solr/templates/` - Jinja2 templates for page layouts + - `themes/solr/static/` - CSS, JavaScript, and static assets + +### Plugins + +The site uses custom Pelican plugins in `plugins/`: + +- **extract_toc** - Extracts table of contents from Markdown +- **jinja2content** - Enables Jinja2 templating in Markdown content +- **regex_replace** - Regex-based text replacement in content +- **age_days_lt** - Date/age comparison utilities +- **vex** - Security vulnerability disclosure system (processes `vex-input.json`) + +## Configuration + +### Main Configuration File: `pelicanconf.py` + +Key settings to update during releases: + +```python +SOLR_LATEST_RELEASE = '9.9.0' # Latest patch version +SOLR_LATEST_RELEASE_DATE = datetime(2025, 7, 24) +SOLR_PREVIOUS_MAJOR_RELEASE = '8.11.4' # Previous major version + +SOLR_OPERATOR_LATEST_RELEASE = 'v0.9.1' # Operator version +SOLR_OPERATOR_LATEST_RELEASE_DATE = datetime(2025, 3, 25) +``` + +These variables control: +- Download page version references +- Links to source code, javadocs, PGP, and SHA512 files +- Version-specific messaging throughout the site + +### Version Numbering Conventions + +The configuration uses underscores in artifact filenames (e.g., `6_3_0`) while displaying dots in HTML (e.g., `6.3.0`). + +## Security Vulnerability Tracking + +The site includes a VEX (Vulnerability Exploitability eXchange) system: + +- **Input**: `vex-input.json` - JSON array of CVE entries with analysis +- **Plugin**: `plugins/vex/` - Processes VEX data for display on security page +- **Output**: Generates security disclosures on the website + +When adding new CVE information, edit `vex-input.json` following the existing structure with fields: +- `ids` - CVE identifiers +- `versions` - Affected Solr versions +- `jars` - Affected JAR files +- `analysis` - State (exploitable/not_affected) and details + +## Apache Infrastructure Integration + +- `.asf.yaml` - ASF infrastructure configuration + - Defines staging/production branch behavior + - Configures GitHub settings (merge buttons, protected branches) + - Sets up email notifications for issues/PRs to mailing lists +- `.github/workflows/` - CI/CD pipelines + - `build-pelican.yml` - Builds and deploys main/production branches + - `pr-build-pelican.yml` - Validates PRs without deploying + +## Pelican-Specific Details + +- **Theme**: Custom theme at `themes/solr` +- **Markdown Extensions**: Configured in `pelicanconf.py` with TOC, code highlighting, and metadata support +- **Static Resource Versioning**: Uses directory hash suffix (via `checksumdir`) to bust caches on updates +- **Template Pages**: `.htaccess` is generated from `htaccess.template` + +## Release Manager Tasks + +During a Solr release, update these items: + +1. Bump version numbers in `pelicanconf.py` +2. Update release dates +3. Add any new CVE disclosures to `vex-input.json` +4. Update download links (handled automatically by templates once version is updated) + +**Note**: JavaDoc and Reference Guide publishing happens via SVN (not this repo) - see Release Manager documentation. diff --git a/SOLR_SECURITY_WEBSITE_PLAN.md b/SOLR_SECURITY_WEBSITE_PLAN.md new file mode 100644 index 000000000..8b8cf3f7b --- /dev/null +++ b/SOLR_SECURITY_WEBSITE_PLAN.md @@ -0,0 +1,391 @@ +# Plan: SOLR-18193 Security Reporting Workflow Improvements + +## Context +The Solr security page mixes CVE news, reporting guidance, VEX docs, and the full CVE table in one page. +SOLR-18193 asks to separate concerns, add visual workflow documentation, and create PMC canned responses. + +Key constraints: +- Volunteer disclaimer appears only once +- Keep reporter-centric perspective; don't overload with ASF-internal process detail +- Link to https://www.apache.org/security/committers.html but keep it brief +- CVE IDs are assigned by ASF Security Team (CNA), not Solr PMC alone — reflect this accurately + +--- + +## Branch +``` +SOLR-18193-security-reporting-workflow +``` + +--- + +## Summary of Changes + +| Action | File | Notes | +|--------|------|-------| +| MODIFY | `content/pages/security.md` | Rewrite/restructure; last 5 CVEs only; links to new sub-pages | +| MODIFY | `themes/solr/templates/security.html` | Trim CVE list to 5; add links to security-news | +| MODIFY | `plugins/combined_posts/__init__.py` | Add security-news paginated generation | +| CREATE | `themes/solr/templates/security-news.html` | Paginated security article history | +| MODIFY | `themes/solr/templates/posts.html` | Add Security News tab to subnav | +| CREATE | `content/pages/security-dependency-cves.md` | Dependency CVE status + VEX download | +| CREATE | `themes/solr/templates/security-dependency-cves.html` | VEX table + download button | +| CREATE | `content/pages/security-reporting.md` | PMC procedure + canned responses | +| CREATE | `themes/solr/templates/security-reporting.html` | Extends subnav.html | +| PLACE | `themes/solr/static/images/security-vuln-process.png` | PNG diagram (placeholder; SVG to follow) | + +--- + +## File Details + +### 1. MODIFY: `plugins/combined_posts/__init__.py` + +Add a second generator class `SecurityNewsGenerator` alongside `CombinedPostsGenerator`. +It filters only `solr/security` articles, sorts chronologically, paginates, and writes: +- Page 1 → `security-news.html` +- Page N → `security-newsN.html` + +Register both generators in `get_generators()` (return a list). + +Template used: `security-news` (new template below). + +Context passed to template: +- `posts` — current page's security articles +- `posts_page`, `posts_paginator` — pagination objects (reuse same Pelican Paginator API) +- `title` — "Solr Security News" + +--- + +### 2. CREATE: `themes/solr/templates/security-news.html` + +Extends `subnav.html`. Subnav adds "Security News" tab alongside existing news tabs +so security-news.html feels like a sub-section of the main news area. + +```jinja2 +{% extends "subnav.html" %} +{% block subnav_title %}Solr™ News{% endblock %} +{% block subnav_nav_items %} +<dd><a href="{{ SITEURL }}/posts.html">All News</a></dd> +<dd><a href="{{ SITEURL }}/security-news.html" class="selected">Security News</a></dd> +<dd><a href="{{ SITEURL }}/blog.html">Blog</a></dd> +<dd><a href="{{ SITEURL }}/news.html">Announcements</a></dd> +{% endblock %} +``` + +Content block: same article-rendering pattern as `posts.html` but for security articles only. +Each article renders its full content inline (matching current `security.html` behavior). +Pagination links at the bottom use `security-news.html` / `security-newsN.html` URLs. + +Also modify `posts.html` to add the same "Security News" tab to its subnav. + +--- + +### 3. MODIFY: `themes/solr/templates/security.html` + +- Change `[:15]` to `[:5]` in the CVE list table +- Add "See full security news history →" link below the table pointing to `security-news.html` +- Remove the full article `{% for %}` block (moves to `security-news.html`) +- Remove the "CVE reports for Apache Solr dependencies" section (moves to `security-dependency-cves.html`) + +--- + +### 4. MODIFY: `content/pages/security.md` + +Complete rewrite of the prose. Structure after rewrite: + +``` +[callout box] Found a new vulnerability? → mailto + link to reporting-procedure.html + +## Report a New Vulnerability +Brief: what makes a valid report (auth required, supported version, repro steps, plaintext). +Link to reporting-procedure.html for full detail. + +## Published CVEs Detected by Scanners +Keep current Do/Don't list. Simplify prose. +Point to security-dependency-cves.html for the full dependency CVE list and VEX download. + +## More Information +- Full security news history: security-news.html +- Dependency CVE list and VEX file: security-dependency-cves.html +- Reporting procedure and email templates: security-reporting.html +- ASF security resources: https://www.apache.org/security/ +``` + +Front matter unchanged (`URL: security.html`, `template: security`). + +--- + +### 5. CREATE: `content/pages/security-dependency-cves.md` + +Front matter: +``` +Title: Solr™ CVE Reports for Dependencies +URL: security-dependency-cves.html +save_as: security-dependency-cves.html +template: security-dependency-cves +``` + +Content (prose only — table and download button rendered by template): +- Brief intro: what is VEX, why it exists +- How to use the VEX JSON file with scanning tools +- Invitation to join security-discuss mailing list or contact [email protected] + +--- + +### 6. CREATE: `themes/solr/templates/security-dependency-cves.html` + +Extends `page.html`. Renders: +1. `{{ page.content }}` (VEX explanation prose) +2. A large styled download button: + ```html + <a href="/solr.vex.json" class="button large" download> + Download Solr VEX File (JSON) + </a> + ``` +3. The full CVE dependency table (moved verbatim from current `security.html`): + - Columns: id, versions, jars, state, detail + - Filters `vex` context for `analysis.state != "exploitable"` (same as current) + +--- + +### 7. CREATE: `content/pages/security-reporting.md` + +Front matter: +``` +Title: Solr™ Vulnerability Reporting Procedure +URL: security-reporting.html +save_as: security-reporting.html +template: security-reporting +``` + +**Sections** (each with HTML `id` anchor for subnav): + +**1. Introduction** (`id="introduction"`) + +> Apache Solr is maintained by volunteers. The PMC will make every effort to respond, +> but cannot guarantee specific response times. We appreciate your patience and your +> contribution to the security of the project. +> +> If you have concerns about how the project team is handling a report, you may also +> contact [[email protected]](mailto:[email protected]). For PMC members, the ASF +> provides detailed [committer guidance on vulnerability handling](https://www.apache.org/security/committers.html). + +**2. Submission Rules** (`id="submission-rules"`) + +1. Plaintext email only — no zip files, no links to external docs, no PDFs +2. One vulnerability per email — for multiple issues, send separate emails +3. Include reproduction steps — scanner output alone is not a report +4. Test with authentication and authorization enabled — running without auth is a misconfiguration +5. Test against a supported Solr version — check solr.apache.org/downloads.html + +**3. Workflow Diagram** (`id="workflow"`) + +Raw HTML `<figure>` block with inline PNG image (SVG to follow): +```html +<figure> + <img src="{filename}/images/security-vuln-process.png" + alt="Solr vulnerability reporting workflow diagram" + style="max-width:100%; height:auto;" /> + <figcaption>Vulnerability reporting workflow</figcaption> +</figure> +``` + +**4. What to Expect** (`id="what-to-expect"`) + +| Step | Who | Timeframe | +|------|-----|-----------| +| Initial triage / acknowledgment | PMC volunteers | Up to 7 days | +| Full investigation | PMC volunteers | Up to 30 days | +| CVE ID request | PMC + ASF Security Team (CNA) | During fix development | +| Fix + CVE publication | PMC + ASF Security Team | Coordinated with you | +| Credit in advisory | PMC | At public disclosure | + +> Public disclosure is announced on the [oss-security mailing list](https://oss-security.openwall.org/wiki/mailing-lists/oss-security) +> following the ASF standard process. + +**5. Canned Email Responses** (`id="canned-responses"`) + +Five `<details>/<summary>` collapsible blocks — see full content below. + +**6. After Acceptance: JIRA Process** (`id="jira-process"`) + +1. Create a private JIRA issue (set appropriate security level — not public) +2. Send acknowledgment email (use Response A template) +3. Issue is included in the weekly security-issues digest email +4. PMC coordinates investigation via private JIRA, security list, and security Slack +5. When fix is ready: request CVE ID from ASF Security Team via the CVE portal +6. Notify reporter of planned disclosure date +7. Publish fix release, then publish CVE advisory +8. Announce on [email protected] (handled by ASF Security Team) +9. Update security.html and close JIRA + +--- + +### 8. CREATE: `themes/solr/templates/security-reporting.html` + +```jinja2 +{% extends "subnav.html" %} +{% block subnav_title %}Vulnerability Reporting Procedure{% endblock %} +{% block subnav_subtitle %}How the Solr PMC handles security disclosures{% endblock %} +{% block subnav_nav_items %} +<dd><a href="#submission-rules">Submission Rules</a></dd> +<dd><a href="#workflow">Workflow</a></dd> +<dd><a href="#what-to-expect">What to Expect</a></dd> +<dd><a href="#canned-responses">Email Templates</a></dd> +<dd><a href="#jira-process">After Acceptance</a></dd> +{% endblock %} +{% block content_inner %} +<div class="small-12 columns">{{ page.content }}</div> +{% endblock %} +``` + +--- + +### 9. PLACE: `themes/solr/static/images/security-vuln-process.png` + +Copy from `~/Downloads/solr_vuln_process.png`. Referenced in the procedure page as shown +in section 7 above. A future commit replaces this with an SVG. + +--- + +## Canned Email Responses + +### A — Acknowledgment (report accepted) +**`<summary>`:** Response A: Acknowledgment — report received and under review + +``` +Subject: Re: [Original Subject] + +Thank you for your security report. + +We have received your report and created a private issue to track it. +The Solr PMC will review your report and aim to update you within 30 days. +We will keep you informed through this email thread. + +Please do not discuss this report on public channels (mailing lists, +GitHub, social media) until we have coordinated public disclosure with you. + +If you have additional information, please reply to this email. + +Apache Solr Security Team [email protected] +https://solr.apache.org/security.html +``` + +### B — Reject: scanner output, no reproduction steps +**`<summary>`:** Response B: Reject — scanner output without reproduction steps + +``` +Subject: Re: [Original Subject] + +Thank you for contacting the Solr security team. + +We are unable to process reports that consist solely of scanner tool output +without a demonstrated reproduction of the vulnerability in Apache Solr. + +Scanner reports list dependency CVEs that are often not applicable to how +Solr uses those libraries. Before filing a security report, please: + +1. Check https://solr.apache.org/security-dependency-cves.html — we publish a VEX file + listing CVEs already assessed as not exploitable in Solr. +2. Verify the issue is actually exploitable in a properly configured Solr + instance (with authentication and authorization enabled). +3. Write step-by-step reproduction steps that demonstrate the impact on + Solr specifically. + +For dependency upgrade discussions, the public Solr users list is the +right venue: [email protected] + +Apache Solr Security Team +``` + +### C — Reject: multiple vulnerabilities in one email +**`<summary>`:** Response C: Reject — multiple distinct vulnerabilities in one email + +``` +Subject: Re: [Original Subject] + +Thank you for your security report. + +Your email appears to describe [N] separate potential vulnerabilities. +To allow each issue to be tracked, fixed, and disclosed independently, +please re-submit each as a separate email to [email protected]. + +Each email should cover exactly one vulnerability with: + - A clear description of the issue + - Step-by-step reproduction instructions + - The Solr version tested + - The impact and attack scenario + +We will begin reviewing each issue once we receive the separate reports. + +Apache Solr Security Team +``` + +### D — Reject: attachment or external link instead of plaintext +**`<summary>`:** Response D: Reject — report sent as zip file or external link + +``` +Subject: Re: [Original Subject] + +Thank you for your security report. + +For security reasons, the Solr PMC does not open zip file attachments +or follow external links (Google Docs, Dropbox, etc.) in security reports. + +Please re-send your report as plaintext in the body of an email to [email protected], including: + + - Description of the vulnerability + - Step-by-step reproduction instructions + - Solr version and configuration tested + - Expected vs. actual behavior + - Any relevant log output, pasted directly into the email + +We look forward to reviewing your report once re-submitted in plaintext. + +Apache Solr Security Team +``` + +### E — Reject: no authentication / behavior within role +**`<summary>`:** Response E: Reject — no authentication configured or behavior within expected role + +``` +Subject: Re: [Original Subject] + +Thank you for your security report. + +After reviewing your report, we are unable to treat this as a security +vulnerability because [choose applicable]: + + a) The behavior requires Solr to be running without authentication. + Solr is not designed for unauthenticated operation in any networked + environment. Running without authentication is a misconfiguration, + not a Solr vulnerability. + + b) The action performed was permitted by the role used in your test. + A vulnerability requires either that the action exceeded what the + role should allow, or that it should never be permitted for any role. + +If you believe our assessment is incorrect, please reply with details +explaining why the behavior should not be possible under your tested +configuration and role. + +Apache Solr Security Team +``` + +--- + +## Testing + +1. `./build.sh` — no Pelican errors; verify all new output files exist: + - `output/security.html` — rewritten, last 5 CVEs, callout box + - `output/security-news.html` — full paginated security article history + - `output/security-dependency-cves.html` — VEX explanation, table, download button + - `output/security-reporting.html` — workflow diagram, canned responses +2. Check subnav anchor links resolve (`#submission-rules`, `#workflow`, etc.) +3. Verify diagram image renders and scales at 320px, 768px, 1200px viewports +4. Verify `<details>/<summary>` collapse works (no JS required) +5. Check "See full security news history" link on security.html points to security-news.html +6. Check download button on security-dependency-cves.html links to `/solr.vex.json` +7. Verify the security.html URL and top-nav link are unchanged diff --git a/content/pages/security-dependency-cves.md b/content/pages/security-dependency-cves.md new file mode 100644 index 000000000..c0b51ba17 --- /dev/null +++ b/content/pages/security-dependency-cves.md @@ -0,0 +1,21 @@ +Title: Solr™ CVE Status for Dependencies +URL: security-dependency-cves.html +save_as: security-dependency-cves.html +template: security-dependency-cves + +Apache Solr depends on many third-party libraries. Security scanners routinely flag CVEs in +those libraries, but a CVE in a dependency does not automatically mean Solr is vulnerable — +it depends on whether Solr actually exercises the affected code path in a way that can be exploited. + +We publish our assessment of dependency CVEs in a machine-readable +**[VEX (Vulnerability Exploitability eXchange)](https://cyclonedx.org/capabilities/vex/)** file. +VEX is an emerging standard that lets vendors state explicitly whether a CVE applies to their product, +and why. Our file follows the [CycloneDX 1.4](https://cyclonedx.org/) JSON format. + +If your scanner supports VEX, download the file below and point your scanner at it to automatically +suppress known non-applicable findings. If your scanner does not yet support VEX, you can use the +table on this page to manually triage flagged CVEs. + +We encourage feedback on VEX and tool support — join the discussion at +[[email protected]](mailto:[email protected]) +or contact [[email protected]](mailto:[email protected]). diff --git a/content/pages/security-reporting.md b/content/pages/security-reporting.md new file mode 100644 index 000000000..20c175c4b --- /dev/null +++ b/content/pages/security-reporting.md @@ -0,0 +1,200 @@ +Title: Solr™ Vulnerability Reporting Procedure +URL: security-reporting.html +save_as: security-reporting.html +template: security-reporting + +This page documents the procedure for reporting a security vulnerability in Apache Solr and +explains what happens after a report is submitted. It also provides canned email templates +for PMC members to use when responding to reports. + +Apache Solr is maintained by volunteers. The PMC will make every effort to respond promptly, +but cannot guarantee specific response times. We appreciate your patience and your contribution +to the security of the project. + +If you have concerns about how the project team is handling a report, you may also contact +[[email protected]](mailto:[email protected]) directly. +For PMC members, the ASF provides detailed +[committer guidance on vulnerability handling](https://www.apache.org/security/committers.html). + +## Before You Report + +Ensure you have tested against a [supported Solr version](https://solr.apache.org/downloads.html) +with both **authentication** and **authorization** properly configured. +Exploits demonstrated without authentication are not valid — running Solr without authentication is a +misconfiguration, not a vulnerability. + +<h2 id="submission-rules">Submission Rules <a class="headerlink" href="#submission-rules" title="Permanent link">¶</a></h2> + +A valid security report to [[email protected]](mailto:[email protected]) must: + +1. **Be sent as plaintext** — no zip file attachments, no links to Google Docs, Dropbox, or similar services +2. **Cover exactly one vulnerability** — if you have multiple findings, send one email per issue +3. **Include step-by-step reproduction steps** — scanner output alone is not a report +4. **Demonstrate the issue with authentication and authorization enabled** — running Solr + without authentication is a misconfiguration, not a vulnerability +5. **Target a [supported Solr version](https://solr.apache.org/downloads.html)** — reports + against unsupported versions will not be accepted + +<h2 id="workflow">Workflow <a class="headerlink" href="#workflow" title="Permanent link">¶</a></h2> + +<figure class="workflow-figure"> + <img src="{{ SITEURL }}/theme/images/security-vuln-process.png" + alt="Flowchart showing the Solr vulnerability reporting process: reporter submits plaintext email, PMC triages within 7 days (reject / needs changes / accepted), accepted reports get a private JIRA and ACK email, followed by full investigation up to 30 days, then either won't fix or confirmed vuln leading to fix, coordinated disclosure, CVE publication, and credit in advisory." /> + <figcaption>Solr vulnerability reporting workflow</figcaption> +</figure> + +<h2 id="what-to-expect">What to Expect <a class="headerlink" href="#what-to-expect" title="Permanent link">¶</a></h2> + +| Step | Who | Timeframe | +|------|-----|-----------| +| Initial triage / acknowledgment | PMC volunteers | Up to 7 days | +| Full investigation | PMC volunteers | Up to 30 days | +| CVE ID allocation | PMC + ASF Security Team (CNA) | During fix development | +| Fix + CVE publication | PMC + ASF Security Team | Coordinated with you | +| Credit in advisory | PMC | At public disclosure | + +Public disclosure follows the ASF standard process and is announced on the +[oss-security mailing list](https://oss-security.openwall.org/wiki/mailing-lists/oss-security). + +<h2 id="canned-responses">Canned Email Responses <a class="headerlink" href="#canned-responses" title="Permanent link">¶</a></h2> + +The following templates are provided for PMC members responding to incoming reports. +Click each entry to expand and copy the template. + +<details> +<summary>Response A: Acknowledgment — report received and under review</summary> +<pre> +Subject: Re: [Original Subject] + +Thank you for your security report. + +We have received your report and created a private issue to track it. +The Solr PMC will review your report and aim to update you within 30 days. +We will keep you informed through this email thread. + +Please do not discuss this report on public channels (mailing lists, +GitHub, social media) until we have coordinated public disclosure with you. + +If you have additional information, please reply to this email. + +Apache Solr Security Team [email protected] +https://solr.apache.org/security.html +</pre> +</details> + +<details> +<summary>Response B: Reject — scanner output without reproduction steps</summary> +<pre> +Subject: Re: [Original Subject] + +Thank you for contacting the Solr security team. + +We are unable to process reports that consist solely of scanner tool output +without a demonstrated reproduction of the vulnerability in Apache Solr. + +Scanner reports list dependency CVEs that are often not applicable to how +Solr uses those libraries. Before filing a security report, please: + +1. Check https://solr.apache.org/security-dependency-cves.html — we publish + a VEX file listing CVEs already assessed as not exploitable in Solr. +2. Verify the issue is actually exploitable in a properly configured Solr + instance (with authentication and authorization enabled). +3. Write step-by-step reproduction steps that demonstrate the impact on + Solr specifically. + +For dependency upgrade discussions, the public Solr users list is the +right venue: [email protected] + +Apache Solr Security Team +</pre> +</details> + +<details> +<summary>Response C: Reject — multiple distinct vulnerabilities in one email</summary> +<pre> +Subject: Re: [Original Subject] + +Thank you for your security report. + +Your email appears to describe [N] separate potential vulnerabilities. +To allow each issue to be tracked, fixed, and disclosed independently, +please re-submit each as a separate email to [email protected]. + +Each email should cover exactly one vulnerability with: + - A clear description of the issue + - Step-by-step reproduction instructions + - The Solr version tested + - The impact and attack scenario + +We will begin reviewing each issue once we receive the separate reports. + +Apache Solr Security Team +</pre> +</details> + +<details> +<summary>Response D: Reject — report sent as zip file or external link</summary> +<pre> +Subject: Re: [Original Subject] + +Thank you for your security report. + +For security reasons, the Solr PMC does not open zip file attachments +or follow external links (Google Docs, Dropbox, etc.) in security reports. + +Please re-send your report as plaintext in the body of an email to [email protected], including: + + - Description of the vulnerability + - Step-by-step reproduction instructions + - Solr version and configuration tested + - Expected vs. actual behavior + - Any relevant log output, pasted directly into the email + +We look forward to reviewing your report once re-submitted in plaintext. + +Apache Solr Security Team +</pre> +</details> + +<details> +<summary>Response E: Reject — no authentication configured or behavior within expected role</summary> +<pre> +Subject: Re: [Original Subject] + +Thank you for your security report. + +After reviewing your report, we are unable to treat this as a security +vulnerability because [choose applicable]: + + a) The behavior requires Solr to be running without authentication. + Solr is not designed for unauthenticated operation in any networked + environment. Running without authentication is a misconfiguration, + not a Solr vulnerability. + + b) The action performed was permitted by the role used in your test. + A vulnerability requires either that the action exceeded what the + role should allow, or that it should never be permitted for any role. + +If you believe our assessment is incorrect, please reply with details +explaining why the behavior should not be possible under your tested +configuration and role. + +Apache Solr Security Team +</pre> +</details> + +<h2 id="jira-process">After Acceptance: JIRA Process <a class="headerlink" href="#jira-process" title="Permanent link">¶</a></h2> + +Once a report passes initial triage, the PMC follows these steps: + +1. Create a **private JIRA issue** with the appropriate security level (not publicly visible) +2. Send the **acknowledgment email** to the reporter (Response A above) +3. The issue is included in the **weekly security-issues digest** email for PMC awareness +4. PMC coordinates the investigation via private JIRA, the security mailing list, and security Slack +5. When a fix is ready, request a **CVE ID from the ASF Security Team** (the CNA for all Apache projects) via the CVE portal +6. **Notify the reporter** of the planned disclosure date +7. **Publish the fix release**, then publish the CVE advisory on the security page +8. The ASF Security Team announces the advisory on **[email protected]** +9. **Update security.html** with the new CVE entry and close the JIRA issue diff --git a/content/pages/security.md b/content/pages/security.md index 449c54692..44c9f1b2f 100644 --- a/content/pages/security.md +++ b/content/pages/security.md @@ -1,67 +1,34 @@ -Title: Solr™ Security News +Title: Solr™ Security URL: security.html save_as: security.html template: security -## How to report a security issue +## Report a New Vulnerability -### Published CVEs Detected by Scanners -Every CVE that is detected by a software scanner is by definition already public knowledge. That means the Solr PMC and the rest of the world probably already know about it. +The Solr PMC greatly appreciates responsible disclosure of new security vulnerabilities found in Solr itself +or demonstrating exploitation via a dependency. -To find a path forward in addressing a detected CVE we suggest the following process for fastest results: +See the [vulnerability reporting procedure](security-reporting.html) for the full reporting rules, +the workflow diagram, and what to expect after you report. -1. Check [further down this page](#recent-cve-reports-for-apache-solr) to see if the CVE is listed as exploitable in Solr. -2. Check the [officially published non-exploitable vulnerabilities](#cve-reports-for-apache-solr-dependencies) list to see if the CVE is listed as not exploitable in Solr. -3. Search through the [Solr users mailing list archive](https://lists.apache.org/[email protected]) to see if anyone else has brought up this dependency CVE. -4. If no one has, then please do [subscribe to the users mailing list](https://solr.apache.org/community.html#mailing-lists-chat) and then send an email asking about the CVE. +## CVEs in Dependencies Detected by Scanners -#### Dos and Don'ts -* Please DO discuss the possible need for library upgrades on the user list. -* Please DO search Jira for the CVE number to see if we are addressing it already. -* Please DO create Jira issues and associated pull requests to propose and discuss upgrades of *a single specific* dependency. -* Please DO NOT attach a scan report, or paste output of a scan into Jira (just link the CVE instead) -* Please DO NOT email the security email below with a scan report it will be ignored. -* Please DO look into automating some of this with [VEX](#vex) and share your experience. - -#### Use of Jira -Jira is for discussing specific development modifications. Any Jira that contains only scan report output, or references multiple dependencies at the same time is likely to be ignored/closed. The large number of folks sending us reports of things that are already known is a serious drag on our (volunteer) time so **please search Jira** before opening a new issue. - -### New Exploits <span style="color:blue">You</span> Discover in Solr - -The Solr PMC greatly appreciates reports of new security vulnerabilities found in Solr itself or demonstrations of exploiting vulnerabilities via dependencies. -**It is important not to publish a previously unknown exploit**, or exploit demonstration code on public mailing lists. -Please disclose new exploits responsibly by following these [ASF guidelines](https://www.apache.org/security/) for reporting. -The contact email for reporting newly discovered exploits in Solr is <mailto:[email protected]>. - -Before reporting a new exploit ensure that you have tested it against an instance of Solr that is running a [supported version](https://solr.apache.org/downloads.html) and has been properly configured with: +Every CVE detected by a scanner is by definition already public knowledge. +Before contacting the security team about a dependency CVE, please: -1. **Authentication** - Exploits demonstrated without login waste our time because Solr is not meant to run such that the entire world has access to all of its APIs. Running without forcing users to log in is no more valid than running linux with a widely known default root password, or a database with a root account that has no password. -2. **Authorization** - It is not an exploit unless the authenticated user was configured with a role that should have prohibited the action, or the action should never be allowed for any user regardless of role. Your report should say why you think this action is not acceptable for the role(s) you tested it with. - -#### VEX -Since the process of checking whether CVEs in dependencies of Solr affect your -Solr deployment is tedious and error-prone, we are experimenting with sharing -information about advisories that are known (not) to affect Solr in a -machine-readable way. - -File formats to share this information are called 'VEX' formats. A number of -such formats are under active development, such as based on -[CycloneDX](https://cyclonedx.org/capabilities/vex/) and -[CSAF](https://github.com/oasis-tcs/csaf/blob/master/csaf_2.0/prose/csaf-v2-editor-draft.md#45-profile-5-vex). - -We are currently providing vulnerability information in a CycloneDX JSON-based -format [here](/solr.vex.json). We are very curious to hear about your experience, -and to find out what is still missing to reduce the signal/noise ratio and make -these tools more effective. We invite you to join the discussion at the -[security-discuss](mailto:[email protected]) -[mailinglist](https://www.apache.org/foundation/mailinglists.html) or, -if you prefer to collaborate in private, contact -[[email protected]](mailto:[email protected]). It will likely be interesting -to know what security scanning/reporting tool you are using, exactly on which -artifacts, and if/how its vendor appears to support VEX. We'd be happy to work -with you to see if we can provide this information in other variations or formats. +1. Check the [dependency CVE status page](security-dependency-cves.html) to see if the CVE has already + been assessed as not exploitable in Solr. +2. Download our [VEX file](security-dependency-cves.html) if your scanner supports VEX, to automatically suppress known non-applicable findings. +3. Search the [Solr users mailing list archive](https://lists.apache.org/[email protected]) + to see if the CVE has been discussed. +4. If nothing is found, [subscribe to the users list](https://solr.apache.org/community.html#mailing-lists-chat) + and ask there. +#### Dos and Don'ts -### More information -You will find more security related information on our Wiki: [https://cwiki.apache.org/confluence/display/SOLR/SolrSecurity](https://cwiki.apache.org/confluence/display/SOLR/SolrSecurity) +* **DO** discuss dependency upgrade needs on the users mailing list +* **DO** search Jira for the CVE number before opening a new issue +* **DO** open a focused Jira issue with a PR to upgrade a *single specific* dependency +* **DO NOT** email the security address with scanner reports — they will not be processed +* **DO NOT** paste scan output into Jira or attach reports — link the CVE instead diff --git a/pelicanconf.py b/pelicanconf.py index ee0c7925f..64d7ebb0b 100755 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -107,7 +107,7 @@ COMBINED_POSTS_PER_PAGE = 20 MARKDOWN = { 'extension_configs': { - 'toc': {}, + 'toc': {'permalink': True, 'permalink_class': 'headerlink', 'permalink_title': 'Permanent link'}, 'markdown.extensions.codehilite': {'css_class': 'codehilite'}, 'markdown.extensions.extra': {}, 'markdown.extensions.meta': {}, diff --git a/plugins/combined_posts/__init__.py b/plugins/combined_posts/__init__.py index 23268794a..a44b2af46 100644 --- a/plugins/combined_posts/__init__.py +++ b/plugins/combined_posts/__init__.py @@ -100,9 +100,69 @@ class CombinedPostsGenerator(Generator): logger.info(f'Writing {url} ({page_num}/{paginator.num_pages})') +class SecurityNewsGenerator(Generator): + """ + Generator for creating a paginated security news page. + + Lists only articles from the 'solr/security' category, sorted + chronologically, and generates security-news.html (+ security-newsN.html). + """ + + def generate_output(self, writer): + """Generate paginated security news pages.""" + + articles = self.context.get('articles', []) + + security_articles = [ + a for a in articles + if hasattr(a, 'category') and a.category and + a.category.name == 'solr/security' + ] + + security_articles.sort(key=lambda x: x.date, reverse=True) + + per_page = self.settings.get('COMBINED_POSTS_PER_PAGE', 20) + + paginator = Paginator('security-news', 'security-news{number}.html', + security_articles, self.settings, per_page) + + template = self.get_template('security-news') + + for page_num in range(1, paginator.num_pages + 1): + posts_page = paginator.page(page_num) + + context = self.context.copy() + context.update({ + 'posts': posts_page.object_list, + 'posts_page': posts_page, + 'posts_paginator': paginator, + 'page': posts_page, + 'title': 'Solr Security News', + 'slug': 'security-news', + }) + + if page_num == 1: + output_path = os.path.join(self.output_path, 'security-news.html') + url = 'security-news.html' + else: + output_path = os.path.join( + self.output_path, + f'security-news{page_num}.html' + ) + url = f'security-news{page_num}.html' + + os.makedirs(os.path.dirname(output_path), exist_ok=True) + + output = template.render(context) + with open(output_path, 'w', encoding='utf-8') as f: + f.write(output) + + logger.info(f'Writing {url} ({page_num}/{paginator.num_pages})') + + def get_generators(pelican): - """Register the CombinedPostsGenerator.""" - return CombinedPostsGenerator + """Register the CombinedPostsGenerator and SecurityNewsGenerator.""" + return [CombinedPostsGenerator, SecurityNewsGenerator] def register(): diff --git a/themes/solr/static/images/security-vuln-process.png b/themes/solr/static/images/security-vuln-process.png new file mode 100644 index 000000000..6840a3b66 Binary files /dev/null and b/themes/solr/static/images/security-vuln-process.png differ diff --git a/themes/solr/templates/posts.html b/themes/solr/templates/posts.html index 5f3ff6139..0070e5f76 100644 --- a/themes/solr/templates/posts.html +++ b/themes/solr/templates/posts.html @@ -3,6 +3,7 @@ {% block subnav_title %}Solr™ News{% endblock %} {% block subnav_nav_items %} <dd><a href="{{ SITEURL }}/posts.html" class="selected">All News</a></dd> +<dd><a href="{{ SITEURL }}/security-news.html">Security News</a></dd> <dd><a href="{{ SITEURL }}/blog.html">Blog</a></dd> <dd><a href="{{ SITEURL }}/news.html">Announcements</a></dd> {% endblock %} diff --git a/themes/solr/templates/security-dependency-cves.html b/themes/solr/templates/security-dependency-cves.html new file mode 100644 index 000000000..fdb509ad6 --- /dev/null +++ b/themes/solr/templates/security-dependency-cves.html @@ -0,0 +1,65 @@ +{% extends "subnav.html" %} + +{% block subnav_title %}CVE Status for Dependencies{% endblock %} +{% block subnav_nav_items %} +<dd><a href="{{ SITEURL }}/security.html">Security</a></dd> +<dd><a href="{{ SITEURL }}/security-reporting.html">Vulnerability Reporting Procedure</a></dd> +<dd><a href="{{ SITEURL }}/security-dependency-cves.html" class="selected">CVE Status for Dependencies</a></dd> +{% endblock %} + +{% block ng_directives %}x-ng-app-root="/solr"{% endblock %} + +{% block content_inner %} +<div class="small-12 columns"> + <style type="text/css"> + .headerlink, .elementid-permalink { + visibility: hidden; + } + h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { + visibility: visible; + } + .vex-download { + margin: 1.5em 0; + } + </style> + + {{ page.content }} + + <div class="vex-download"> + <a href="/solr.vex.json" class="button large" download>⭳ Download Solr VEX File (JSON)</a> + </div> + + <h2 id="cve-table">CVE Reports for Apache Solr Dependencies <a class="headerlink" href="#cve-table" title="Permanent link">¶</a></h2> + <p>Below is a list of CVE vulnerabilities in Apache Solr dependencies and their applicability to Solr. + CVEs assessed as exploitable in Solr have their own advisory on the + <a href="{{ SITEURL }}/security-news.html">security news page</a>.</p> + + <table> + <tr> + <th>ID</th> + <th>Versions</th> + <th>JARs</th> + <th>State</th> + <th>Detail</th> + </tr> + {% for v in (vex | selectattr("analysis.state", "ne", "exploitable")) %} + <tr> + <td> + {% for id in v.ids %} + {% if id.startswith('CVE') %}<a href="https://nvd.nist.gov/vuln/detail/{{ id }}">{{ id }}</a>{% else %}{{ id }}{% endif %} + {%- if not loop.last %}, {% endif %} + {% endfor %} + </td> + <td>{{ v.versions }}</td> + <td> + {% for jar in v.jars %} + {{ jar }}{% if not loop.last %}, {% endif %} + {% endfor %} + </td> + <td>{{ v.analysis.state.replace('_', ' ') }}</td> + <td>{{ sub("(https://.*?)([.;]\s)", "<a href=\"\\1\">\\1</a>\\2", v.analysis.detail) }}</td> + </tr> + {% endfor %} + </table> +</div> +{% endblock content_inner %} diff --git a/themes/solr/templates/security-news.html b/themes/solr/templates/security-news.html new file mode 100644 index 000000000..ca9e332e0 --- /dev/null +++ b/themes/solr/templates/security-news.html @@ -0,0 +1,53 @@ +{% extends "subnav.html" %} + +{% block subnav_title %}Solr™ Security News{% endblock %} +{% block subnav_nav_items %} +<dd><a href="{{ SITEURL }}/posts.html">All News</a></dd> +<dd><a href="{{ SITEURL }}/security-news.html" class="selected">Security News</a></dd> +<dd><a href="{{ SITEURL }}/blog.html">Blog</a></dd> +<dd><a href="{{ SITEURL }}/news.html">Announcements</a></dd> +{% endblock %} + +{% block rss %}<link rel="alternate" type="application/atom+xml" title="Solr security announce feed" href="/feeds/solr/security.atom.xml" />{% endblock %} + +{% block content_inner %} +<div class="small-12 columns"> + <style type="text/css"> + .headerlink, .elementid-permalink { + visibility: hidden; + } + h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { + visibility: visible; + } + h2 { + padding-top: 70px; + margin-top: -70px; + } + </style> + + <p>Full history of Apache Solr security advisories. Subscribe to the <a href="/feeds/solr/security.atom.xml">security ATOM feed</a> to be notified of new advisories.</p> + + {% for article in posts %} + <h2 id="{{ article.slug }}">{{ article.date | strftime("%Y-%m-%d") }}, {{ article.title }} + <a class="headerlink" href="#{{ article.slug }}" title="Permanent link">¶</a> + </h2> + {{ article.content }} + <hr/> + {% endfor %} + + {% if posts_paginator and posts_paginator.num_pages > 1 %} + <div class="pagination"> + {% if posts_page.has_previous() %} + <a href="{{ SITEURL }}/{% if posts_page.previous_page_number() == 1 %}security-news.html{% else %}security-news{{ posts_page.previous_page_number() }}.html{% endif %}">← Newer</a> + {% endif %} + <span class="pagination-info"> + Page {{ posts_page.number }} of {{ posts_paginator.num_pages }} + </span> + {% if posts_page.has_next() %} + <a href="{{ SITEURL }}/security-news{{ posts_page.next_page_number() }}.html">Older →</a> + {% endif %} + </div> + {% endif %} + +</div> +{% endblock content_inner %} diff --git a/themes/solr/templates/security-reporting.html b/themes/solr/templates/security-reporting.html new file mode 100644 index 000000000..3a4cf6e55 --- /dev/null +++ b/themes/solr/templates/security-reporting.html @@ -0,0 +1,61 @@ +{% extends "subnav.html" %} + +{% block subnav_title %}Vulnerability Reporting Procedure{% endblock %} +{% block subnav_nav_items %} +<dd><a href="{{ SITEURL }}/security.html">Security</a></dd> +<dd><a href="{{ SITEURL }}/security-reporting.html" class="selected">Vulnerability Reporting Procedure</a></dd> +<dd><a href="{{ SITEURL }}/security-dependency-cves.html">CVE Status for Dependencies</a></dd> +{% endblock %} + +{% block content_inner %} +<div class="small-12 columns"> + <style type="text/css"> + .headerlink, .elementid-permalink { + visibility: hidden; + } + h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { + visibility: visible; + } + details { + border: 1px solid #ddd; + border-radius: 4px; + margin-bottom: 1em; + padding: 0; + } + summary { + background: #f5f5f5; + cursor: pointer; + font-weight: bold; + padding: 0.75em 1em; + border-radius: 4px; + } + details[open] summary { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + details pre { + background: #fafafa; + border: none; + margin: 0; + padding: 1em 1.5em; + white-space: pre-wrap; + font-size: 0.9em; + } + .workflow-figure { + margin: 2em 0; + } + .workflow-figure img { + width: 100%; + height: auto; + border: 1px solid #e8e8e8; + border-radius: 4px; + } + .workflow-figure figcaption { + color: #666; + font-size: 0.9em; + margin-top: 0.5em; + } + </style> + {{ page.content }} +</div> +{% endblock content_inner %} diff --git a/themes/solr/templates/security.html b/themes/solr/templates/security.html index 1c465737a..117cfd565 100644 --- a/themes/solr/templates/security.html +++ b/themes/solr/templates/security.html @@ -1,4 +1,11 @@ -{% extends "page.html" %} +{% extends "subnav.html" %} + +{% block subnav_title %}Solr™ Security{% endblock %} +{% block subnav_nav_items %} +<dd><a href="{{ SITEURL }}/security.html" class="selected">Security</a></dd> +<dd><a href="{{ SITEURL }}/security-reporting.html">Vulnerability Reporting Procedure</a></dd> +<dd><a href="{{ SITEURL }}/security-dependency-cves.html">CVE Status for Dependencies</a></dd> +{% endblock %} {% block ng_directives %}x-ng-app-root="/solr"{% endblock %} {% block rss %}<link rel="alternate" type="application/atom+xml" title="Solr security announce feed" href="/feeds/solr/security.atom.xml" />{% endblock %} @@ -13,66 +20,37 @@ visibility: visible; } </style> - <h1 id="solr-news">Solr<sup>™</sup> Security News<a class="headerlink" href="#solr-news" title="Permanent link">¶</a></h1> {{page.content}} - <h1 id="recent-cve-reports-for-apache-solr">Recent CVE reports for Apache Solr</h1> - <p>Below is a list of already announced CVE vulnerabilities. These are also available as an <a href="/feeds/solr/security.atom.xml">ATOM feed</a>:</p> + <h2 id="recent-cve-reports-for-apache-solr">Recent CVE Reports for Apache Solr + <a class="headerlink" href="#recent-cve-reports-for-apache-solr" title="Permanent link">¶</a> + </h2> + <p>The five most recent security advisories.</p> + + <table> + <tr> + <th width="130">CVE#</th> + <th width="95">Date</th> + <th>Announcement</th> + </tr> + {% for article in (articles | selectattr("category.name", "eq", "solr/security")|list)[:5] %} + <tr> + <td>{% if article.cve %}<a href="https://nvd.nist.gov/vuln/detail/{{ article.cve }}">{{ article.cve }}</a>{% endif %}</td> + <td>{{ article.date | strftime("%Y-%m-%d") }}</td> + <td><a href="{{ SITEURL }}/security-news.html#{{ article.slug }}">{{ article.title | regex_replace('^CVE.*?: ', '') }}</a></td> + </tr> + {% endfor %} + </table> + <p><a href="{{ SITEURL }}/security-news.html">See full security news history →</a></p> - <table> - <tr> - <th width="130">CVE#</th> - <th width="95">Date</th> - <th>Announcement</th> - </tr> - {% for article in (articles | selectattr("category.name", "eq", "solr/security")|list)[:15] %} - <tr> - <td>{% if article.cve %}<a href="https://nvd.nist.gov/vuln/detail/{{ article.cve }}">{{ article.cve }}</a>{% endif %}</td> - <td>{{ article.date | strftime("%Y-%m-%d") }}</td> - <td><a href="#{{ article.slug }}">{{ article.title | regex_replace('^CVE.*?: ', '') }}</a></td> - </tr> - {% endfor %} - </table> + <h2 id="more-information">More Information <a class="headerlink" href="#more-information" title="Permanent link">¶</a></h2> + <ul> + <li><a href="{{ SITEURL }}/security-news.html">Full security news history</a> — all past CVE advisories</li> + <li><a href="{{ SITEURL }}/security-dependency-cves.html">Dependency CVE status and VEX download</a> — non-exploitable CVEs in dependencies</li> + <li><a href="{{ SITEURL }}/security-reporting.html">Vulnerability reporting procedure</a> — submission rules, workflow, and PMC email templates</li> + <li><a href="https://www.apache.org/security/">ASF security resources</a> — Apache-wide security guidance</li> + <li><a href="https://cwiki.apache.org/confluence/display/SOLR/SolrSecurity">Solr Security Wiki</a> — additional documentation</li> + </ul> - {% for article in (articles | selectattr("category.name", "eq", "solr/security")|list)[:15] %} - <h2 id="{{ article.slug }}">{{ article.date | strftime("%Y-%m-%d") }}, {{ article.title }} - <a class="headerlink" href="#{{article.slug}}" title="Permanent link">¶</a> - </h2> - {{article.content}} - <hr/> - {% endfor %} - <h1 id="cve-reports-for-apache-solr-dependencies">CVE reports for Apache Solr dependencies</h1> - <p>Below is a list of CVE vulnerabilities in Apache Solr dependencies, and the state of their applicability to Solr.</p> - <p>We are currently experimenting with providing this information in a <a href="#vex">machine-readable VEX format</a> and encourage you to participate.</p> - <table> - <tr> - <th>id</th> - <th>versions</th> - <th>jars</th> - <th>state</th> - <th>detail</th> - </tr> - {# CVE's that do affect Solr have their own advisory page above #} - {% for v in (vex | selectattr("analysis.state", "ne", "exploitable")) %} - <tr> - <td> - {% for id in v.ids %} - {% if id.startswith('CVE') %}<a href="https://nvd.nist.gov/vuln/detail/{{ id }}">{{ id }}</a>{% else %}{{ id }}{% endif %} - {%- if not loop.last %}, {% endif %} - {% endfor %} - </td> - <td> - {{ v.versions }} - </td> - <td> - {% for jar in v.jars %} - {{ jar }}{% if not loop.last %}, {% endif %} - {% endfor %} - </td> - <td>{{ v.analysis.state.replace('_', ' ') }}</td> - <td>{{ sub("(https://.*?)([.;]\s)", "<a href=\"\\1\">\\1</a>\\2", v.analysis.detail) }}</td> - </tr> - {% endfor %} - </table> </div> {% endblock content_inner %}
