Hasty Paste is a self-hosted pastebin with a browser interface and a REST API. The official project documentation describes fast text sharing and optional expiring pastes. Those features make the service useful for operational notes, logs and incident handoffs. They also turn a paste URL into a bearer-like secret: anyone who has the link may be able to read the content unless the deployment adds a separate access control.

The service is designed to be reachable. A public landing page or API route is not automatically a finding. The security question is whether the person creating a paste understands who can read it, how long it remains available and whether the server stores a second copy after deletion.

Query scope

This review fixed the following signatures:

app="Hasty Paste"
title="Hasty Paste"
http.body="Hasty Paste"

Each query used sub_type="all", page 1 and page size 1. On November 23, 2026 the fixed 30-query batch failed before returning any count. The ZoomEye SDK could not connect to api.zoomeye.ai and reported Windows error 10013. The application, title and body results are unknown. No deployment count is claimed here.

Incident responders often paste logs, configuration snippets and command output into a sharing tool so another person can review it quickly. A log can contain session identifiers, hostnames, API paths or customer data. A configuration snippet can contain secrets even after the values are partially redacted. A short link is easy to paste into a chat and easy to forward beyond the intended recipient.

A public paste service should make the sharing state obvious. If the product supports secret links, expiration or deletion, the user should see the chosen state before saving. The operator should verify how the REST API applies the same policy. A browser-only warning that the API does not enforce is not a usable control.

Deployment checks

Confirm whether the public route exposes a form, an API or both. Review reverse-proxy rules for the API and for any administration route. If the service is intended for internal teams, put it behind the organization's identity proxy. If it is intentionally public, add abuse controls, storage quotas and a report-and-remove process.

Test expiry in a controlled instance. Create a non-sensitive paste, record its creation time and confirm that the link stops working after the configured interval. Check whether deletion removes the database row, any cached response and the underlying file or object. Test through the API as well as the web form. These checks are more useful than reading a configuration screen and assuming the worker is running.

Use a dedicated service account and storage path. Do not let a paste application read unrelated application files. Back up only the data required for the retention policy, and encrypt the backup. If the service has no authentication and is reachable from an untrusted network, the owner should decide whether that is an intended public pastebin or a configuration mistake.

Evidence and response

Review access logs for paste creation and retrieval, especially requests from addresses outside the expected organization. A link being accessed is not proof that it leaked. Determine whether the paste was intentionally shared, whether it contained a credential and who could see it. Preserve the content and headers before deletion when an investigation requires them.

If a secret appeared in a paste, revoke the secret and check the downstream audit log. Deleting the paste does not make a copied token invalid. Remove cached copies, search indexes and backups according to the retention policy. Notify the data owner when the content contains customer or personal information.

Measurement after failure

A future run should repeat the three queries with the same subtype and page scope. ZoomEye can find candidate pages by application fingerprint, title or body text. It cannot determine whether a specific paste remains live, who created it or whether its content is sensitive. Those checks require the service owner and the retention configuration.

The safe operating model is simple to state: make a link's audience and lifetime visible before content is saved, enforce the same rule through the API, and make deletion cover every copy that the service controls.

References