Reporting security issues in HAProxy
------------------------------------

Security issues may ONLY be reported against the LATEST released version of a
branch, as indicated on https://www.haproxy.org/. It is the reporter's sole
responsibility to verify that the issue exists in the upstream source code of
the latest release for a given branch before submitting a report. Reports are
frequently generated against older versions containing known, previously
resolved bugs. Triaging these duplicate claims severely drains maintainer
resources. If you are analyzing a specific version and cannot test the latest
release, you MUST review your version's bugs at https://www.haproxy.org/bugs/
and check the repository history to verify whether the fixes missing from that
version address the issue. If the bug has already been resolved upstream, you
must update your version or identify the specific missing patch, and refrain
from sharing your report which then brings no value.

Maintainers reserve the right to silently ignore security reports for issues
already resolved in up-to-date releases.

Before reporting anything, please read doc/internals/threat-model.txt. It
defines precisely what is and is not considered a security vulnerability in
HAProxy. A fair number of suspected issues (and most automated or LLM-assisted
findings) fall outside that boundary: they are ordinary bugs, and are best
reported and fixed in public through the usual channels described in the
"Contacts" section of doc/intro.txt.

Based on this, think about how your finding fits in the threat model, and state
it in your report: who the attacker is and what they control (e.g. a client
sending requests, a server sending responses; note that access to the
configuration or to the CLI is considered trusted), what they concretely gain
from a successful attack, and what conditions are required for it to succeed
(default configuration or specific settings, timing, build options, library
versions, etc).

If, after reading the threat model, you are confident you have found a genuine
security issue that would put many users at risk if discussed in the open, the
security team can be reached at security@haproxy.org, a private list read by a
handful of security officers; anything shared there remains private. Please
include a reproducer, and ideally a proposed and tested patch, as well as a
valid name under which the report can be credited.

Always send one e-mail per report, so that reports can be easily dispatched to
different maintainers, and do not send another report before getting a response
to the first one. If you have several findings, send the one you consider the
most solid, and mention how many others you have. Experience shows that a large
fraction of submitted reports are invalid or incomplete, and the security team
prefers to evaluate the quality of a first report before spending time on more,
rather than having to discard an entire series.

Write the report in PLAIN TEXT only, with lines wrapped around 72-80 columns:
no HTML, markdown, RST or other decorations, which make messages painful to
read and even more painful to reply to. Paste configurations, logs, traces and
reproducers inline, and do not use links to external sites. Do NOT attach
binary files (tar.gz, zip, pdf, ...) as they are impossible to read inline and
quote when replying. Small text files may be attached when they are better
kept separate (e.g. a patch or a long reproducer).

Do NOT send reports to the haproxy.com address which is handled by a different
team and is for different products. Always use a valid e-mail address when
submitting your report. Submissions for which the reporter doesn't respond to
questions in a timely manner will simply be dropped.

Auxiliary tools in dev/ and admin/ are not intended for production use and are
by nature out of the security scope. Please report bugs affecting them via the
regular channels.

We usually don't use embargoes: once a fix is available it simply gets merged.
In rare circumstances a release may be coordinated with software vendors, but
this disrupts everyone's work and rushed releases can introduce new bugs, so it
is avoided unless strictly necessary. As a result, reports that needlessly cause
such extra burden get little consideration, and the most effective and best
credited way to report an issue is to provide a working fix, which will appear
in the changelogs.

Issues that are independently reported by multiple people within a short time
are considered trivial to find, and as such already public in practice: anyone
can find them at any moment, and there is no point in keeping them private nor
in delaying their fix, this would only extend users' exposure. The same applies
to findings that merely result from running common tools (static analyzers,
fuzzers, LLM-based scanners) without further analysis. Such issues lose their
security status and are handled as regular bugs: they are fixed in public,
without any security classification nor CVE.

In all cases, credit is given to the reporter of the first COMPLETE report
only, that is, one describing an issue that falls within the threat model,
confirmed against the latest release, and accompanied by a working reproducer
(and a tested patch for AI-assisted findings, see below). Many people run the
same tools on the same code, and the same issue is frequently reported several
times within a few days. An incomplete report does not reserve anything: the
security team may ask for the missing information, but will often simply ignore
the report, and if the missing elements are provided later, it can be too late.
Rushing an incomplete report thus exposes its author to someone else's complete
report being credited first. Taking the time to verify and complete a report
remains the best way to be credited for it.

Findings produced with the help of AI MUST be accompanied by a working, tested
patch. Such tools routinely report issues that are out of scope (see the
threat model above) or simply not real, and reviewing them by hand wastes the
very time and trust this process depends on. A model-generated report that
arrives without a verified reproducer and a fix will generally not be
processed.

See also:
  - doc/internals/threat-model.txt    : what qualifies as a vulnerability
  - doc/internals/core-principles.txt : the project's design principles
  - doc/intro.txt                     : general contacts and bug reporting
