Contrôle d'accès aux routes protégées et CSRF OPB-088
À tester
Automatisable
Desktop
Instructions
Précondition : boutique activée. Étapes :
- Accéder à une route protégée (dashboard/*) sans être authentifié.
- Soumettre un formulaire protégé avec un jeton CSRF invalide.
- Tenter d'accéder au document d'un autre tiers (facture/PDF/ticket/RMA). Attendu : redirection vers login pour les routes protégées, rejet CSRF (sauf routes explicitement csrf-exempt), aucun accès croisé entre tiers (opb_hasAccess).
Liens
Aucun lien.
Tests automatiques liés
| Source | Référence du test | Niveau |
|---|---|---|
| phpunit | AddressBookHttpTest::testTheContactOfAnotherCustomerCannotBeTouched | partial |
| phpunit | AuthenticatedTicketHttpTest::testTicketAccessForbiddenForOtherCustomer | partial |
| phpunit | AuthenticatedTicketHttpTest::testTicketsAccessRequiresLogin | partial |
| phpunit | AuthenticatedTicketHttpTest::testTicketsListHidesOtherCustomerTickets | partial |
| phpunit | BackendCsrfHttpTest::testDiscountRuleSetSwitchNeedsTheToken | partial |
| phpunit | BackendCsrfHttpTest::testPackSwitchNeedsTheToken | partial |
| phpunit | BackendCsrfHttpTest::testPictureSharingNeedsTheToken | partial |
| phpunit | BackendCsrfHttpTest::testPortalPasswordResetNeedsTheToken | partial |
| phpunit | BackendCsrfHttpTest::testReturnCancelNeedsTheToken | partial |
| phpunit | BackendCsrfHttpTest::testWebhookSwitchNeedsTheToken | partial |
| phpunit | CalcCustomerLookupHttpTest::testSignedInCustomerGetsOnlyItsOwnDetails | partial |
| phpunit | CalcCustomerLookupHttpTest::testVisitorGetsNothingFromAnEmail | partial |
| phpunit | CalcCustomerLookupHttpTest::testVisitorGetsNothingFromAVatNumber | partial |
| phpunit | CheckoutAddressesHttpTest::testAContactOfAnotherCustomerIsIgnored | partial |
| phpunit | CsrfStrictLevelHttpTest::testStorefrontLookupAcceptsTheTokenOfThePage | partial |
| phpunit | DashboardCoreHttpTest::testCorePageRedirectsToLoginWhenAnonymous | partial |
| phpunit | DashboardDocumentsIntegrationTest::testInvoiceIsListedForOwnerOnly | partial |
| phpunit | GetActionLinksHttpTest::testBasketLineIsNotRemovedByALink | partial |
| phpunit | GetActionLinksHttpTest::testLinkDoesNotLogOut | partial |
| phpunit | GetActionLinksHttpTest::testTicketIsNotClosedByALink | partial |
| phpunit | OrderThirdpartyHttpTest::testVisitorTypingThePortalCustomerEmailIsAskedToSignIn | partial |
| phpunit | PortalAppointmentHttpTest::testSlotIssuedToAnotherCustomerIsRefused | partial |
| phpunit | PortalExtHttpTest::testAnonymousVisitorIsNotServed | partial |
| phpunit | PortalExtHttpTest::testFormIsPostedThroughTheCsrfCheck | partial |
| phpunit | PortalExtHttpTest::testPageIsRenderedForTheThirdpartyOfTheSession | partial |
| phpunit | PortalLeasingHttpTest::testOtherCustomerLeasingIsNotClosed | partial |
| phpunit | PortalObjectOwnershipHttpTest::testOtherCustomerContractIsNeitherShownNorClosed | partial |
| phpunit | PortalObjectOwnershipHttpTest::testOtherCustomerProjectAndTaskAreNotShown | partial |
| phpunit | PortalObjectOwnershipHttpTest::testOtherCustomerSubscriptionIsNeitherShownNorSuspended | partial |
| phpunit | PortalSessionHttpTest::testQuotePdfIsOnlyServedToTheVisitorWhoMadeIt | partial |
| phpunit | PortalSessionHttpTest::testQuoteWithExistingCustomerEmailOpensNoPortalSession | partial |
| phpunit | PortalSessionHttpTest::testSessionPointedAtAnotherThirdpartyIsRefused | partial |
| phpunit | PortalTicketImageHttpTest::testImageIsRefusedOnATicketWithoutThirdparty | partial |
| phpunit | PublicTicketHttpTest::testPublicAddMessageMissingCsrfTokenRejected | partial |
| phpunit | ReservedCategoriesHttpTest::testVisitorIsSentToLoginFromAReservedCategoryAndComesBack | partial |
| phpunit | RmaHttpTest::testOwnershipIsEnforced | partial |
| phpunit | SessionRedirectsHttpTest::testRestrictedShopSendsVisitorsToTheLoginPage | partial |
| phpunit | ShopTemplatesOnlyHttpTest::testCustomerContractIsRefusedOnGetAndPost | partial |
| phpunit | ShopTemplatesOnlyHttpTest::testCustomerRecurringInvoiceIsRefusedOnGetAndPost | partial |
| phpunit | UgcGalleryHttpTest::testGalleryDeleteOnlyOwnPhoto | partial |
Vidéos de test
Aucune vidéo. Les tests automatiques publient ici la vidéo de référence (succès, une seule fois) et, en cas d'échec, la vidéo d'échec à comparer.
Historique des verdicts
Aucun verdict enregistré.
Discussion
Aucun commentaire pour l'instant.