Setting Up security.txt (RFC 9116) and Server-Verified Clickwrap Consent for Web Utilities

How to configure RFC 9116 security.txt vulnerability disclosure channels and enforce legally binding affirmative clickwrap consent at the API gateway layer.

Setting Up security.txt (RFC 9116) and Server-Verified Clickwrap Consent for Web Utilities
Table of Contents
Key Takeaways
  • Publishing a standardized security.txt file under RFC 9116 gives ethical security researchers a verified reporting channel for vulnerability disclosures.
  • Passive browsewrap agreements embedded in website footers fail legal enforceability tests across federal appellate circuits.
  • Affirmative clickwrap assent requires users to take an unambiguous, affirmative action before accessing services.
  • Client-side UI checkboxes can be bypassed via direct API calls unless backend ingestion endpoints verify consent tokens on every request.
  • Combining RFC 9116 disclosure standards with server-verified clickwrap establishes defensible legal hygiene and security practices.

Giving Ethical Researchers a Front Door With RFC 9116

Establishing a verified vulnerability disclosure policy is essential for modern web applications handling public traffic.

Security researchers frequently discover vulnerabilities in web applications, ranging from misconfigured HTTP security headers to subtle Cross-Site Scripting (XSS) edge cases.

When a researcher identifies an issue on a domain that lacks a clear security contact, they face an awkward dilemma:

The Undisclosed Channel Dilemma:
1. Researcher identifies vulnerability on example.com.
2. Checks website: No security email, no disclosure terms, no PGP key.
3. Reaches out via generic support form or Twitter/X mentions.
4. Message triaged by non-technical marketing staff or ignored.
5. In frustration, researcher files a public GitHub issue:
   "Vulnerability found in production API (Exploit attached)"
Result: Zero-day exposure before engineering can deploy a patch.

The Internet Engineering Task Force (IETF) standardized RFC 9116 to solve this coordination breakdown. RFC 9116 defines a machine-readable, human-parseable text file hosted at /.well-known/security.txt.

This location provides an unambiguous, discovery-friendly front door where automated security scanners and human researchers can locate contact instructions immediately.

RFC 9116 Vulnerability Disclosure Policy Architecture
RFC 9116 Vulnerability Disclosure Policy Architecture

Standard Syntax and Required Directive Fields

RFC 9116 mandates strict file formatting, delivery standards, and directive fields.

The security file must be served over HTTPS with a Content-Type: text/plain header and UTF-8 encoding. It must reside at either /.well-known/security.txt or /security.txt at the root of the domain.

Here is a production implementation adhering strictly to RFC 9116 specifications:

# PoofShare Vulnerability Disclosure Policy
# Reference: RFC 9116 (https://www.rfc-editor.org/rfc/rfc9116)

Contact: https://poofshare.com/contact
Expires: 2027-12-31T23:59:59.000Z
Encryption: https://poofshare.com/pgp-key.asc
Preferred-Languages: en
Canonical: https://poofshare.com/.well-known/security.txt
Policy: https://poofshare.com/privacy
Acknowledgments: https://poofshare.com/about

Two fields are strictly mandatory under RFC 9116:

  1. Contact: An email address (mailto:[email protected]) or a secure web portal (https://...) where researchers can submit vulnerability details safely.
  1. Expires: An ISO-8601 UTC timestamp declaring when the file must be considered stale. This forces site operators to review and maintain their security channels periodically. If the current date exceeds the Expires value, automated vulnerability scanners treat the policy as unmaintained.

Additional recommended directives include Encryption (a link to an ASCII-armored PGP public key for encrypting sensitive disclosures), Preferred-Languages (IETF language tags for incoming reports), and Canonical (the authoritative origin URL of the policy to detect third-party proxy tampering).

Why Passive Browsewrap Fails Legally

Relying on passive website footers to enforce legal agreements is a critical legal mistake for web utilities.

In internet law, terms of service agreements fall into two primary categories: browsewrap and clickwrap.

A browsewrap agreement assumes user consent through passive site navigation. The operator places a generic disclaimer in the footer: "By accessing or using this website, you agree to be bound by our Terms of Service." The user is never prompted to review or explicitly accept the contract before uploading files or consuming computing resources.

Browsewrap vs. Clickwrap Enforceability Matrix:
Legal Standard:           Browsewrap Agreement         Affirmative Clickwrap
User Action:              Passive site viewing         Active checkbox click
Notice Visibility:        Submerged in page footer     Prominent modal or form gate
Affirmative Assent:       None                         Mandatory user input
Judicial Precedent:       Routinely invalidated        Consistently upheld
Enforceability (US/EU):   Unenforceable                Enforceable

United States federal courts have repeatedly held browsewrap agreements unenforceable. In landmark decisions such as Nguyen v. Barnes & Noble, Inc. (704 F.3d 639) and Specht v. Netscape Communications Corp. (306 F.3d 17), courts ruled that when a website offers terms without requiring affirmative assent, a user cannot be bound to contractual terms they did not actively see or accept.

For web platforms that process user uploads, enforce content moderation, or defend against copyright claims, an unenforceable browsewrap contract leaves operators completely exposed.

The Judicial Standard for Affirmative Clickwrap

Enforceable online contracts require unambiguous affirmative action prior to service consumption.

Clickwrap agreements require the user to check a box or click an explicit confirmation button stating: "I agree to the Terms of Service and Privacy Policy."

To satisfy judicial standards across appellate circuits, a clickwrap implementation must satisfy three core criteria:

  1. Reasonable Notice: The terms must be prominently displayed in clear font adjacent to the action button, not hidden below the fold or behind obscure hyperlinks.
  1. Affirmative Assent: The checkbox must be unselected by default. Pre-checked boxes fail regulatory standards under GDPR and are viewed unfavorably by domestic courts.
  1. Gating Functionality: The user must be physically prevented from completing their transaction or file upload until the checkbox is checked.
Clickwrap vs. Browsewrap: Legal Enforceability at the API Layer
Clickwrap vs. Browsewrap: Legal Enforceability at the API Layer

Implementing an affirmative checkbox in the browser interface is insufficient if the backend API ingests data blindly.

Many web applications implement clickwrap purely on the frontend: JavaScript disables the submit button until a checkbox is checked.

However, any malicious actor, automated script, or command-line utility (curl, python-requests) can bypass the browser interface entirely, sending multi-part file uploads directly to the API endpoint without ever seeing the terms.

The API Ingestion Vulnerability:
1. Browser UI enforces clickwrap: [x] I agree (Button Enabled).
2. Bot/Script skips browser:
   curl -X POST https://example.com/api/upload \
     -F "[email protected]"
3. Naive API handles upload:
   Reads binary -> Stores file -> Returns 200 OK
Result: Zero legal contract established. Ingestion occurred without consent.

If an infringing or abusive user uploads media via direct API scripts, the platform operator cannot prove the uploader ever accepted the terms of service.

TIP
Never trust frontend DOM state for contractual consent. An upload API must demand an explicit agreement field within the request payload and reject unverified requests with HTTP 400 Bad Request before parsing binary file streams.

Server-Side Assent Verification Pattern

Defensible architecture validates affirmative assent directly within the edge request pipeline.

When an upload request reaches the edge gateway, the router validates the presence of an explicit consent field within the multipart/form-data payload before executing storage operations or image processing:

// Edge Request Verification Pipeline (Conceptual ES Module)
export async function onRequestPost(context) {
  const { request, env } = context;
  const formData = await request.formData();

  // Enforce affirmative server-side clickwrap assent
  const termsAgreed = formData.get("agree_terms");
  if (termsAgreed !== "true" && termsAgreed !== "1") {
    return new Response(JSON.stringify({
      error: "Affirmative consent required. You must accept Terms of Service prior to upload."
    }), {
      status: 400,
      headers: { "Content-Type": "application/json" }
    });
  }

  // Proceed with binary validation and storage
  const file = formData.get("file");
  return processVerifiedUpload(file, env);
}

By enforcing this check at the API gateway layer, direct bot scripts and command-line tools are rejected with an HTTP 400 status unless they explicitly transmit the assent token.

This guarantees that every file ingested across the platform perimeter is backed by verifiable contractual assent.

Engineering Trust and Technical Hygiene

Modern web platforms earn user trust through transparent security protocols and disciplined legal hygiene.

At PoofShare, our public /.well-known/security.txt policy gives ethical researchers clear guidelines for coordinated disclosure.

Every upload is protected by single-CAPTCHA HMAC session tokens and managed under strict zero-log legal hold protections.

Our control endpoints are hardened with PBKDF2 key stretching and host cookie boundaries, while our entire frontend operates as an offline-ready dark mode PWA.

Review our comprehensive terms in our Privacy Policy and discover our engineering values on our About Page.

What is the primary purpose of RFC 9116 security.txt?

RFC 9116 establishes a standardized, machine-readable location (/.well-known/security.txt) where security researchers can find authorized contact methods, PGP encryption keys, and disclosure policies without searching public forums.

Why are browsewrap agreements unenforceable in online file hosting?

Federal appellate courts have consistently ruled that passive footer disclaimers fail to give users reasonable notice of contractual terms. Without affirmative action, no legally binding contract is established.

How does server-side clickwrap verification protect an API?

By requiring an explicit consent parameter (such as agree_terms=true) in upload payloads, backend APIs reject automated curl commands and bot scripts that attempt to bypass browser checkboxes.

What happens if the Expires field in a security.txt file passes?

RFC 9116 specifies that security.txt files past their expiration timestamp must be treated as stale and invalid by automated vulnerability scanners and security researchers.

PS

PoofShare Team

Dedicated to building zero-knowledge, ephemeral hosting systems and sharing practical technical guides on privacy.

Link copied to clipboard!