Recapi's libraries and shop plugins run on our customers' servers and sites, and its API and dashboard hold their data. If you find a security flaw in any of them, tell us privately first, so we can fix it before anyone can use it against a shop.
Report a flaw
Report a flaw hello@recapi.io
Write to the security contact listed at https://recapi.io/.well-known/security.txt (the same address is on https://recapi.io/contact). For the PHP and Swift libraries, whose code is public on GitHub, you can instead use "Report a vulnerability" on the Security tab of https://github.com/Blushedface/recapi-php or https://github.com/Blushedface/recapi-swift, if it is shown there: it stays private too.
Include what is affected (the library or plugin and its version, which a WooCommerce shop reads on WordPress's Plugins screen, or the address of the page or API call), the steps that show the flaw, and what an attacker could do with it. Please don't open a public issue or pull request about it.
Test only with your own account, shop and keys. Don't read, change or delete anyone else's data beyond the least needed to show the flaw, and don't test denial of service, spam or social engineering.
What we do
- We acknowledge your report within 3 working days.
- We tell you whether we confirm the flaw and how we plan to fix it, and keep you informed until the fix is released.
- When a flaw in code we distribute is actively exploited, we report it to the EU's single reporting platform within 24 hours and tell the shops it affects.
Supported versions
The hosted API and dashboard always run the current release.
Each library (JavaScript, Python, PHP, Java, Go, C#, Ruby and Swift) and each shop integration (the WooCommerce plugin, the Magento extension and the Shopify theme snippet) gets fixes in its latest minor version. A fix ships as a new patch version on every registry: update to it. Older minor versions get no fixes.
The WooCommerce plugin takes its updates from recapi's API, the address it was installed for, over HTTPS. WordPress installs one only when the shop clicks, or when the shop turned on automatic updates for the plugin: we never turn them on.
An update is the plugin as the quick start shows it, built by the API from our release. WordPress checks no signature on plugin updates, ours or anyone's: what protects them is the API's TLS certificate and access to our releases.
The page that says what a plugin update brings is the one page we let other sites show in a frame, so that WordPress can show it in its details window. It is static: no script, no form, no cookie, nothing that acts when clicked. Every other page of ours refuses to be framed.
A leaked secret key
A secret key (rk_sec_…) reads your shoppers' stored histories, so it must stay on your servers.
We are joining GitHub's secret scanning: once GitHub reports our keys, a secret key it finds in a public repository, package, gist, issue or Actions log is revoked within a minute. Every member of your organization gets an email that says where it was found and how to replace it.
Until you do, your server's calls with that key are refused; the recommendations on your pages keep showing, as they use your public key. New secret keys end in a six-character checksum, so a scanner can tell a real key from random text.
Your login
Dashboard logins can be protected by two-factor login: after the password, a code from an authenticator app, with ten single-use recovery codes for a lost phone (turn it on in the dashboard's Settings). Recapi's own staff accounts must use it: without it they open no admin page.
Coordinated disclosure
We publish an advisory under Advisories below once the fix is released, and credit you in it if you wish. Please wait until then, or until 90 days after your report, before you publish details. If the flaw is already public or being exploited, we may publish sooner.
Advisories
Each advisory names the affected and fixed versions and what to do. For the PHP and Swift libraries we also publish it on the library's GitHub repository.
None published so far.
No bounty
We don't run a paid bug bounty and don't pay for reports.
Out of scope
Reports from automated scanners with no impact shown, missing headers or settings with no way to exploit them, and flaws in the services we use (Hetzner, Cloudflare and the others on https://recapi.io/subprocessors): report those to their owners.