Problem/Motivation
You can access forms through links, even if you don't have connected Instapage account.
Although you can't add or change any Instapage page, this is still a problem, because for example if you know the ID of some added page, you can visit the edit form of that page and access its Path variable.
Steps to reproduce
- Don't connect Instapage account in /admin/config/services/instapage
- Visit /admin/structure/instapage/new
- Visit /admin/structure/instapage/edit/ANY_NUMBER
- Visit /admin/structure/instapage/delete/ANY_NUMBER
Proposed resolution
Restrict access for forms if Instapage account isn't connected.
Also for Edit and Delete forms check if page even exists.
Add automated tests.
Issue fork instapage-3187618
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
timotej-pl commentedComment #6
nmatja commentedI managed to reproduce the problem one the 'instapage/edit' and 'instapage/remove' pages. On the 'instapage/new' the website crashed with an unexpected error.
After applying the fork patch I got the access denied warning on all listed pages. So the patch is working correctly.
Comment #9
bcizej commentedThanks to both, commited.