import type { AuditContext } from '@cclabsnz/sf-core'; import type { SecurityCheck, CheckResult } from '../SecurityCheck.js'; /** * Detects whether unauthenticated guests can see OTHER USERS — the identity- * enumeration surface that the object-level guest checks miss, because `User` is * not in their fixed object lists and is rarely surfaced by a guest profile's * ObjectPermissions. * * Three paths are graded: * - "View All Users" on a guest profile/permission set: total bypass of User * sharing, every User record readable regardless of OWD (CRITICAL). * (Not a Read grant on `User` in a guest permission set: User takes no object * permissions, so ObjectPermissions never has a User row; a live org had none * among all its permission sets.) * - A public EXTERNAL org-wide default on `User` (Read/ReadWrite). Since Winter '21 * secure guest record access keeps the guest OWD Private on every object, User * included, so this shows every User record to logged-in portal and community * users, not to guests (MEDIUM). * * The INTERNAL sharing model is reported for context but never graded: `User` * ships as Public Read Only in every org, so grading it would fire on every audit. * * One leg is deliberately not asserted: the "Portal User Visibility" / "Community * User Visibility" checkboxes in Setup → Sharing Settings are not exposed to any * read API this plugin uses, so a clean result carries an explicit manual- * verification note rather than claiming more certainty than the data supports. * The Experience Cloud per-site equivalent ("Let guest users see other members") * IS API-readable and is covered by `guest-site-options`. */ export declare class GuestUserVisibilityCheck implements SecurityCheck { readonly id = "guest-user-visibility"; readonly name = "Guest Visibility of Other Users"; readonly category = "Access Control"; readonly description = "Checks whether unauthenticated guests can see other User records \u2014 via View All Users \u2014 and whether a public external OWD on User shows the roster to logged-in external users"; run(ctx: AuditContext): Promise; private inconclusive; } //# sourceMappingURL=GuestUserVisibilityCheck.d.ts.map