PocketBase Penetration Testing
Last updated:
In PocketBase every collection has five API rules, and an empty rule lets anyone perform that action. We test each rule with a guest, an ordinary user and a second user. EJN Labs is a CREST-accredited UK company providing PocketBase penetration testing, from £2,500 for a 2-day single-project scope, quoted within 24 hours.
- Unlimited retesting
- Unlimited pre-retesting
- No hidden fees
“I would highly recommend EJN Labs to any organisation seeking reliable, detailed, and well-managed penetration testing services, particularly for government or enterprise-level projects.”
“There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.”
Every PocketBase collection has five API rules, one each for list, view, create, update and delete, and they are the whole access control layer for that collection.
How PocketBase decides who can read your data
PocketBase’s documentation describes API rules as your collection access controls and data filters. Each rule can be locked, which means only a superuser can perform the action and is the default, an empty string, which means anyone including guests can, or a filter expression that the request must satisfy. The same expression filters the records that come back, and the API answers an unsatisfied list rule with an empty 200 response rather than an error. That makes a wrong rule easy to miss from the outside and worth testing with real accounts, one rule at a time.
Rules are written against the request itself, using fields such as the authenticated record and the submitted body. The documentation shows a rule that blocks a client from submitting a role field with the :isset modifier, which is the sort of check a rule set needs wherever a user can write to their own record. Realtime follows the same rules: subscribing to one record uses the view rule, and subscribing to a whole collection uses the list rule. Files are separate, and the documentation states that by default all files are publicly accessible if you know their full URL, with a Protected option for sensitive files.
PocketBase usually runs as a single executable on a server you control, so the hosting is part of the review. Its own production guide recommends a rate limiter, a superuser IP allowlist and MFA for superusers, none of which are required to start the server. The code you add through JavaScript hooks or Go is the other risk area, so our JavaScript penetration testing and web application testing apply to everything around the database.
SCOPE
What we test in a PocketBase penetration test
The Five API Rules on Every Collection
Each collection has listRule, viewRule, createRule, updateRule and deleteRule, and an empty string means anyone, including guests, can perform the action. We read every rule on every collection and test each action as a guest, as a user who owns the record and as a second user who does not, comparing the result with what the feature intends.
Rule Filters That Return Too Much or Too Little
API rules also act as record filters, so a list rule that does not restrict to the owner returns everyone’s records, and an unsatisfied list rule returns an empty 200 response rather than an error. We test filter expressions with altered identifiers, nested relation fields and the any-of operators, and look for rules that match more records than intended.
Request Fields in Rules and Mass Assignment
Rules can read the request body, headers, query and the authenticated record, and the documentation shows the :isset and :changed modifiers for controlling which fields a client may submit. We test whether a user can set fields such as role, owner or verified on create and update, and whether rules rely on a header or body value the client controls.
Auth Collections, manageRule and Superusers
Auth collections carry an extra manageRule that lets one user fully manage another user’s data, including email and password, and API rules are ignored for superusers. We review who can satisfy each manageRule, which accounts are superusers, and whether sign-up, email change and password reset flows let a user take over another account.
Auth Tokens, Impersonation and Token Lifetime
PocketBase tokens are stateless and not stored on the server, so there is no logout endpoint, and superusers can generate non-renewable impersonation tokens that the documentation says to use only for internal server-to-server communication. We inventory tokens in use, check where they are stored and sent, and test what a leaked user or superuser token can do.
File Fields, Protected Files and Thumbnails
By default files are publicly accessible to anyone who knows the full URL, and a field marked Protected needs a short-lived file token that must also satisfy the view rule. We test which file fields hold sensitive documents, whether they are protected, and how upload handling treats file type, size and name.
Realtime Subscriptions and Rule Coverage
Realtime subscriptions use the view rule for a single record and the list rule for a whole collection, and authorisation happens when the client sets its subscriptions. We subscribe as a guest, an ordinary user and a second user, and check that no one receives events for records they could not list or view through the normal API.
Custom Routes and Hooks in JavaScript or Go
Custom routes are registered with routerAdd, and a route without an auth middleware such as requireAuth is open to everyone. We review each custom route and hook for missing authentication, missing ownership checks, unsafe query building and unsafe handling of request input, using a code review alongside live testing.
Dashboard, Superuser Hardening and Settings
PocketBase’s production guide recommends the built-in rate limiter, a superuser IP allowlist (from v0.38.0) and MFA or OTP on the _superusers collection, and notes that settings such as SMTP and S3 credentials are stored as plain JSON unless settings encryption is enabled. We test whether the Dashboard is reachable from the internet and which of those controls are in place.
Hosting, Reverse Proxy, Backups and View Collections
A PocketBase app runs from one executable and a pb_data directory, often behind NGINX or Caddy, and backups are ZIP snapshots of that directory. We check TLS, forwarded IP headers, where backups and the data directory are stored and who can read them, and review view collections, which expose the result of a SQL SELECT, for data they should not return.
OUR PROCESS
PocketBase Penetration Testing: From Scope to Attestation
Scope and Access
We agree which PocketBase instance, collections and custom code are in scope, and get accounts for each user type plus a read-only view of the API rules.
Rule and Route Mapping
We map every collection rule, auth collection, file field and custom route, and every superuser and token in use.
Manual Testing
A CREST-certified tester manually tests rules, realtime, files, authentication and custom code with real accounts, chaining findings where they compound.
Attestation and Retest
You get a technical report with CVSS scores and reproduction steps, a walkthrough call, a free retest once fixes are deployed, and an attestation letter for auditors.
CREDENTIALS
Verified Accreditations Auditors Accept
Every credential below is independently verifiable. UK procurement teams, FCA supervisors, ISO 27001 / SOC 2 auditors, and cyber insurance underwriters all recognise these standards.
GET YOUR QUOTE
Get a CREST PocketBase pen test quote in 24 hours
A fixed-price quote back in one business day, from a named CREST assessor. No sales pipeline, no chasing.
- CREST and IASME accredited. Testing your auditors and clients already recognise.
- Fast-track testing within 24 hours where required. Free retest of every fix included.
- Live findings via your client portal, not a four-week PDF.
- Fixed price from £3,500 for a single-role, single-app scope, agreed up front. Most engagements run £5,000 and up. No day-rate surprises.
Under NDA Further named references available on a scoping call.
- We reply within one business day with a fixed-price quote from a named CREST assessor.
- You approve the scope and we book a start date, usually within 24 hours.
- Live findings land in your client portal as we test, with a free retest of every fix.
Get your fixed pen test quote in 24 hours
Quote request received
We will reply within one business day with your fixed-price quote from a named CREST assessor.
Your data stays with us. No newsletter signup.
or book a 20-min scoping call first
We reply within one business day. Your data stays with us. No newsletter signup.
COMPLIANCE READY
Reports Mapped to Every Framework
Findings are written so your team can reference the report against each framework without translation work.
ISO 27001:2022
Annex A.8.8 management of technical vulnerabilities plus A.5.15-5.18 and A.8.2-8.5 access control validation.
SOC 2 Type I & II
CC6 logical access, CC7 system operations, CC8 change management evidence.
PCI DSS
Requirement 11.4 application penetration testing across cardholder data environments, including ecommerce penetration testing for online retail platforms.
FCA SYSC
SYSC 4.1.1R, 6.1.1R, 13 mapped to each finding for FCA-regulated firms.
UK GDPR
Article 32 effectiveness testing, customer-data security controls, ICO-acceptable evidence.
Cyber Essentials Plus
Direct certification through our IASME body status, single-vendor delivery.
PRICING
Transparent PocketBase Penetration Testing Pricing
EJN Labs PocketBase Penetration Testing prices start at £2,500. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.
2 to 3 testing days
Single user role, basic CRUD application, marketing website with auth. Around 5 working days from kickoff to report.
Get a fixed quote3 to 5 testing days
Multi-role SaaS, business application with payment integration. Around 8 to 12 working days from kickoff to report.
Get a fixed quote5 to 7 testing days
Multi-tenant platform, complex authorisation matrix, integration-heavy applications. Around 15 to 20 working days from kickoff to report.
Get a fixed quoteSECTORS
Sectors We Test PocketBase For
Sector-specific scoping for regulated UK organisations.
Fintech & FCA-Regulated
FCA SYSC, Open Banking FAPI 1.0, PSD2 SCA, payment-flow scrutiny, KYC/AML testing.
Fintech sector pageSaaS Companies
SOC 2 Type I & II evidence, multi-tenant boundaries, role escalation, customer-tenant isolation.
SaaS sector pageLaw Firms
SRA Cyber Standard, privileged data, conveyancing fraud defence, partner-tier procurement.
Law firm sector pageHealthcare
NHS DTAC, DSP Toolkit v6, UK GDPR Article 32, EHR systems, telehealth platforms.
Healthcare sector pageInsurance
FCA / PRA Operational Resilience, cyber underwriting, claims data, broker portals.
Insurance sector pagePublic Sector
CCS / G-Cloud framework, NCSC-aligned, citizen-facing services, PSN-compliance scrutiny.
Public sector pageWHY EJN LABS
What You Get From PocketBase Penetration Testing
Six concrete differentiators competitors don’t all match.
CREST-Certified Testers, Verifiable
Every test by a CREST-certified pen tester (CRT, CCT APP, CCT INF where applicable). Verify our company status at crest-approved.org.
24-Hour Startup, Where Required
From signed scope to active testing in a single business day for incident response, audit deadlines, or regulator-driven timelines.
Live Findings, Not 4-Week PDFs
Critical issues reported during testing through your client portal. Your team remediates while testing continues.
Audit-Ready Reports
Executive summary plus full technical report with CVSS scores and explicit framework mappings (ISO 27001, SOC 2, PCI DSS, FCA SYSC).
Free Retests, Standard
Verify remediation of every finding before close-out. Letter of attestation for audit submission included. Most competitors charge £1,500-£3,000 per retest.
UK-Based CREST Testers
Every engagement performed by vetted, UK-based CREST-certified testers, matched to your needs, security clearance, and compliance scope.
FAQ
Frequently Asked
What access do you need to test our PocketBase app?
We need an account for each user type in scope, plus a second account of the same type so we can test one user against another. A copy of your collection rules, or read access to the Dashboard, lets us compare what the rules say with how they behave. Server access is only needed if the hosting is in scope.
Will testing touch live data?
That is your choice, and we agree it before testing starts. Because PocketBase keeps its data in a single directory, a copy of production on a separate instance is a straightforward option, and we then confirm the production settings read-only. We do not run destructive tests or export real customer data without written agreement.
How long does a PocketBase penetration test take?
A single PocketBase instance with one application sits in our 2-day single-project scope, with the report typically landing around 5 working days after kickoff. Many collections, a lot of custom routes or hosting in scope move into a larger scope with more testing days.
Do you test our custom JavaScript or Go code as well?
Yes, where it is in scope. Custom routes and hooks run inside your PocketBase process, so we test them live and, if you share the code, review it for missing authentication, ownership checks and unsafe input handling.
What is out of scope for a PocketBase penetration test?
We never test the PocketBase open source project itself. We test what you configure and control: your collection rules, auth settings, files, custom code and hosting. A connected system such as your identity provider or cloud account is scoped and quoted separately.
Does PocketBase place rules on customer penetration testing?
PocketBase is open source software that you host yourself, and its published security policy covers how to report a vulnerability in PocketBase, not testing of your own deployment. Any terms that apply come from your host or cloud provider, and we confirm those with you during scoping and test to them exactly.
Is EJN Labs CREST accredited?
Yes. EJN Labs is a CREST-accredited company, and every PocketBase engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.
20+ CREST-accredited testing services in one place
Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.
Get a fixed price for your PocketBase app
In PocketBase every collection has five API rules, and an empty rule lets anyone perform that action. We test each rule with a guest, an ordinary user and a second user. EJN Labs is a CREST-accredited UK company providing PocketBase penetration testing, from £2,500 for a 2-day single-project scope, quoted within 24 hours.



