Skip to content

Security: elbanbydev/paykit

Security

SECURITY.md

Security policy

Reporting a vulnerability

Email ahmed@elbanby.com with the details. Please do not open a public issue for anything that could put a merchant's payments at risk. Expect an answer within a few days.

What Paykit assumes

  • Gateway secrets (secret_key, hmac_secret) stay on the server and out of logs. Only public_key is safe in a browser.
  • A callback is untrusted until its signature verifies. The webhook endpoint verifies before it dispatches anything, and it compares digests in constant time.
  • The redirection_url is not signed. It is never used to change order state.
  • Idempotency keys are hashed before they touch the cache, so a key cannot be used to read another key's entry.

Known limits

  • Replay protection is cache based. If the cache is flushed between two deliveries of the same callback, the transaction is processed twice. Make your listener idempotent as well.
  • Paykit does not rate-limit the webhook endpoint. Put it behind your usual middleware if that matters to you.

There aren't any published security advisories