Handling a vulnerability report
A vulnerability report is a message from someone outside a project, usually a security researcher, describing a vulnerability they found in its website, app or code. The practice of receiving such reports privately, fixing the problem and then publishing the details is called coordinated vulnerability disclosure (CVD). The CERT Coordination Center, which has coordinated disclosures since 1988, defines CVD as gathering information from finders, sharing it between the parties involved, and disclosing the vulnerability and its fix.1 At each point, the people who know about the flaw decide what to do next and who else needs to know, and when.2
Disclosure models
In private disclosure, the report goes only to the organisation, which decides whether the details are ever published. In full disclosure, the finder publishes everything at once, sometimes with exploit code, often before a fix exists. Coordinated disclosure sits between them: the report is private, and the full details are published once a patch is available.3 Researchers often attach a deadline. Google's Project Zero, for example, gives vendors 90 days to release a fix and publishes the details 30 days after it, or at 90 days if no fix has shipped.3 GitHub's own guidance accepts public disclosure when a maintainer never replies or asks the reporter to wait too long.4
Publish a contact before a report arrives
When a project gives no reporting address, researchers fall back on guesses, such as email addresses taken from the commit history. Reports sent that way can go astray, and an unfixed issue can end up in public.4 RFC 9116 was written for the same reason: researchers often found no channel to report through.5
security.txt
RFC 9116 defines security.txt, a plain-text file served over HTTPS at /.well-known/security.txt, with the content type text/plain in UTF-8. A copy at /security.txt is allowed for older tools; when both exist, the one under /.well-known/ counts. Each line holds one field and its value, and lines starting with # are comments.5
Contact: mailto:security@example.com
Expires: 2027-10-31T23:00:00Z
Policy: https://example.com/security-policy
Acknowledgments: https://example.com/thanks
Preferred-Languages: en
Canonical: https://example.com/.well-known/security.txtTwo fields are required. Contact is a URI (mailto:, tel: or an https:// page); several may be listed, the preferred one first. Expires appears exactly once, and the RFC recommends a date less than a year ahead. Policy links to the disclosure policy, Acknowledgments to a page that credits reporters, and Encryption to the location of a public key, never the key itself. If the file is fetched from an address not named in its Canonical fields, researchers should not trust it. The RFC rates having no file as preferable to a stale one.5 Renewing the date is part of Security maintenance after launch.
Disclosure policy
The policy page tells researchers what they may test and what happens after they report. CISA's template, written for US federal agencies under Binding Operational Directive 20-01, has these parts:6
- Authorization: research done in good faith under the policy is treated as authorized, and the organisation will not pursue legal action over it.
- Guidelines: report quickly, avoid privacy harm and service disruption, use an exploit only far enough to confirm the flaw, and stop and report at once on reaching sensitive data.
- Test methods not allowed: denial of service, physical testing and social engineering such as Phishing.
- Scope: the systems covered. Systems run by a vendor, such as a hosting or software-as-a-service provider, belong in scope only if that vendor permits testing.
- Reporting: where to send a report and what to include. Anonymous reports must be accepted. The template promises an acknowledgement within 3 business days.
GitHub repositories
A SECURITY.md file holds the repository's policy: on the Security and quality tab, under Reporting, click Security policy, then Start setup.7 For a public repository, owners and admins can also turn on Private vulnerability reporting under Settings, Advanced Security. Researchers then see a Report a vulnerability button on the Advisories page, and the default form asks for a summary, details, a proof of concept and the impact.8
Answering a report
The work on a report runs in this order:34
- Acknowledge receipt quickly, even before anyone has time to investigate, and give a time frame for triage.
- Reproduce the issue, asking the reporter for more detail where needed. The reporter has often tested cases the maintainer has not considered.
- Confirm the vulnerability and give a time frame for the fix.
- Fix it, then ask the reporter to retest if needed.
- Confirm the fix and credit the reporter.
Regular status updates, even without a firm date, show the report has not been forgotten.3 Reports to small teams often reach developers with no security background, and front-line staff who read the general inbox need to know where to forward one.3
Advisory and CVE
For distributed software, a minimum advisory has a summary with the impact, the vulnerable and fixed versions, any conditions that limit exposure, workarounds, and a Common Vulnerabilities and Exposures ID if one exists.3 GitHub's repository security advisories let maintainers discuss the flaw in a draft, fix it in a temporary private fork and publish after the patch. GitHub is a CVE Numbering Authority and usually reviews a CVE request within 72 hours. An advisory published without a fixed version makes Dependabot alert users with no safe version to move to.9 For a private website, publishing the details is optional.3
Payment demands
Some senders ask to be paid before they share the details. A few of these requests are genuine; many are scams. One answer is to ask the sender to report through a mediated Bug bounty program platform, which scammers tend to avoid.3 Where a project runs no public bounty programme, reporters should not expect payment.4
Such messages are known as beg bounties. In November 2021 Troy Hunt published one sent to the address in his own security.txt. He describes such reports as covering minor settings anyone can see from outside, such as DMARC records or a missing Content Security Policy, found with point-and-shoot tools such as SSL Labs and Security Headers. One such tool had graded a Cloudflare interstitial page in place of his real site. He notes that this noise can bury real reports.10
Prompt for a coding agent
Add a vulnerability disclosure setup to this project. Serve a security.txt file at /.well-known/security.txt over HTTPS with the content type text/plain; charset=utf-8, containing a Contact field (ask me for the address), an Expires field about eleven months from today in RFC 3339 format, and a Canonical field with the full URL. If the project has a public GitHub repository, add a SECURITY.md that says how to report a vulnerability and which versions get fixes. Do not invent a policy URL; list anything you need from me.
See also
- Bug bounty program
- Penetration testing
- Common Vulnerabilities and Exposures
- Common Vulnerability Scoring System
- Security checklist before launch
- Securing a GitHub repository
- Category: Incident response
References
- back CERT Coordination Center. "The CERT Guide to Coordinated Vulnerability Disclosure" (originally CMU/SEI-2017-SR-022). Software Engineering Institute.
- back CERT Coordination Center. "Coordinated Vulnerability Disclosure is a Process, Not an Event". The CERT Guide to Coordinated Vulnerability Disclosure.
- a b c d e f g h "Vulnerability Disclosure Cheat Sheet". OWASP Cheat Sheet Series. OWASP.
- a b c d "Coordinated disclosure of security vulnerabilities". GitHub Docs. GitHub.
- a b c Foudil, E.; Shafranovich, Y. (April 2022). "RFC 9116: A File Format to Aid in Security Vulnerability Disclosure". IETF.
- back "Vulnerability Disclosure Policy Template". CISA. Cybersecurity and Infrastructure Security Agency.
- back "Adding a security policy to your repository". GitHub Docs. GitHub.
- back "Configuring private vulnerability reporting for a repository". GitHub Docs. GitHub.
- back "Repository security advisories". GitHub Docs. GitHub.
- back Hunt, Troy (November 2021). "Beg Bounties". troyhunt.com.
External links
- RFC 9116: A File Format to Aid in Security Vulnerability Disclosure, IETF
- The CERT Guide to Coordinated Vulnerability Disclosure, CERT/CC