Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 🔒 Report a Security Vulnerability
url: https://github.com/processing/processing4/security/advisories/new
about: Please report security vulnerabilities privately, not as a public issue. See SECURITY.md.
- name: 🌐 Processing Website Issues
url: https://github.com/processing/processing-website/issues
about: Report issues with the processing.org website here.
Expand Down
149 changes: 149 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Security Policy

## Reporting a Vulnerability

**Please do not report security vulnerabilities through public GitHub issues, pull requests, Discord, or the forum.**

You can report a vulnerability privately in either of these ways:

1. **GitHub private vulnerability reporting** (preferred): go to the [Security tab](https://github.com/processing/processing4/security) of this repository and click **Report a vulnerability**. This opens a private GitHub Security Advisory that only Processing maintainers can see.
2. **Email**: responsible.disclosure@processingfoundation.org

### Reporting Channels

1. Security Advisories in this repository are received by Processing admins/maintainers
2. Responsible Disclosure email reports are received by Processing Foundation staff

### What to Include

A useful report includes:

- The affected component (for example: the PDE, the `pde://` URI handler, the Contribution Manager, `core`, the CLI, the Gradle plugin, `libprocessing`)
- The Processing version and operating system you tested on
- A brief summary of the impact
- Clear steps to reproduce, and a proof of concept if you have one

## Supported Versions

Security fixes are made against the `main` branch and shipped in the next Processing release. We do not backport fixes to older major versions.

| Version | Supported |
| ----------------------------- | ------------------ |
| Latest 4.x release | :white_check_mark: |
| Older 4.x releases | :x: |
| 3.x and earlier | :x: |
| 5.0 (beta) | Best effort |

If you are on an older version, please update to the [latest release](https://processing.org/download) before reporting.

## What to Expect

- We will acknowledge your report within 72 hours
- We will provide regular updates about our progress
- Once the issue is confirmed and fixed, we may ask you to verify the solution

## Disclosure Policy

- Please do not disclose the vulnerability publicly until we have had a chance to address it
- We do not offer bounties as we are a non-profit organization
- We appreciate your efforts to responsibly disclose your findings

## Scope

This policy covers the code in this repository, including:

- The Processing Development Environment (PDE) and its installers
- The `pde://` URI scheme handler (see [SCHEMA.md](./SCHEMA.md))
- The Contribution Manager and update checker, which download content from `processing.org` servers
- The Processing `core` library and Java mode, as published to Maven Central and the Gradle Plugin Portal
- The release and build pipeline in `.github/workflows`

### Out of Scope

Processing is a tool for writing and running code. **A sketch, library, tool, or mode running arbitrary code on your computer is expected behavior, not a vulnerability.** The following are generally out of scope:

- Malicious behavior in a sketch you chose to open and run
- Malicious behavior in a third-party contributed library, tool, mode, or example. Please report those to the contribution's author, and let us know at the email above if a contribution listed in the Contribution Manager should be removed.
- Vulnerabilities in bundled third-party dependencies (such as the JDK, JOGL, or Gradle) that are already publicly known and fixed upstream, unless Processing's use of them makes the issue exploitable in a new way. A pull request or issue to update the dependency is welcome.

The following **are** in scope, for example:

- Code running, files being written, or preferences changing **without** the user's clear intent, such as from opening a `pde://` link or a sketch folder
- Tampering with downloads or updates fetched by the PDE
- Leaked credentials or weaknesses in our build, signing, or release process

Vulnerabilities in other Processing Foundation projects should be reported to that project. For the processing.org website or download servers, use the email address above.

## Accidental Disclosure: Never Share Vulnerabilities Publicly!

Please do not report security vulnerabilities in a public channel. If you notice a vulnerability being disclosed in a public channel (whether on Discord, the forum, GitHub, or other platforms), please flag it to a moderator immediately.

If any moderator in our online community spaces notices something that is plausibly a security vulnerability disclosure (you don't need to verify deeply at this stage, false positive is OK), they should:

1. screenshot and send to responsible.disclosure@processingfoundation.org
2. delete the public content if possible
3. reach out to the poster with a link to this SECURITY.md and a brief explanation that the content was taken down for security reasons

## Incident Response Process

Who handles incoming reports of security vulnerabilities? Who responds to security incidents? A mix of Processing Foundation staff, current Processing maintainers, and Processing contributors, taking on the following roles and responsibilities:

| Role | Responsibility |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Finder / Reporter | Credited when all reporter expectations (below) are met. |
| Incident Lead | First responder; owns the report end-to-end. By default, this is the Project Lead. Handoffs only with a written status summary. Owns advisory publication, and reporter notification. |
| Implementer(s) | Develops the fix; may be a maintainer or contributor nominated by Incident Lead or maintainer(s). |
| Reviewer(s) | At least one other maintainer reviews in the private fork before release. |
| Release Manager | Builds, signs, and publishes the patched release (installers, Maven Central, and Gradle Plugin Portal artifacts as applicable). |

Whoever is available to claim the Incident Lead role starts as soon as they can with Phase 0.

### Phase 0 — Intake

Incident Lead:

- Notifies relevant people, to see which potential implementers are available
- Moves the conversation into a GitHub Security Advisory, if it is not already on there.

### Phase 1 — Triage & Classification

Acknowledge receipt to the reporter within **72H**, along with triage & classification (below).

Reproduce the issue, potentially iterating with the reporter for more information.

Notify along private maintainer chat channels.

Is something a security vulnerability or incident? Use CIA (Confidentiality, Integrity, Availability):

- (0) Not a problem: cannot reproduce, or behavior is expected (see [Out of Scope](#out-of-scope)). Close with explanation.
- (1) Public bug: problem is real but no CIA impact. Respond to the reporter with explanation, but fix openly in a normal PR.
- (2) Vulnerability: impacts CIA (confirmed or plausibly demonstrated), but no evidence of exploitation. Move on to Phase 3 (Fix)
- (3) Incident, including a High-Severity Vulnerability without logs to rule out past exploit, or any compromise of release credentials or signing keys: Move on to Phase 2 (Expedited Report) and then 3 (Fix)

### Phase 2 — (Incidents Only) Expedited Report

In case of an incident, we have some specific reporting responsibilities, which are also fulfilled within **72H** from the initial report. If release credentials or signing keys may be compromised, rotate them immediately.

### Phase 3 — Private Fix

The GitHub Security Advisory (GHSA) thread is the main place for technical discussion, and enables working on a fix in a private repository with a specific set of collaborators. In the GHSA workflow, there is a severity scoring tool that uses CVSS.

Timing of the fix depends on the CVSS score:

1. Critical: act immediately, as soon as possible
2. High/medium: target patch completion or release within about a week
3. Low: batch into routine releases

### Phase 4 — Release & Disclosure

- Merge the fix and publish a patched release; verify that the published installers and artifacts contain the fix
- Publish the advisory and describe the patch in the release notes
- Notify the reporter(s) and everyone who worked on the fix

## Reporter Expectations

Reporters are offered credit in GHSA if their GitHub username is known and if their report:

- Contains a brief and useful summary, plus clear steps to reproduce
- Focuses on one report per defect, and avoids spurious LLM-generated reports
- Is supportive of the community
Loading