Skip to content

Commit 0c2c3cf

Browse files
committed
wip
0 parents  commit 0c2c3cf

29 files changed

+7989
-0
lines changed

Readme.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Ziggy Route Debugger
2+
3+
![screenshot.png](images%2Fscreenshot.png)
4+
5+
## Are you leaking routes in your ziggy powered site?
6+
7+
Ziggy Route Debugger is a open-source browser extension that allows you to easily verify that the no sensitive routes
8+
are leaked to guests.
9+
10+
If you used Ziggy with your laravel project (and possibly Inertia.js) you may be leaking routes you don't want to.
11+
12+
Of course these routes will be possibly protected by an auth middleware however there are cases you don't want to expose
13+
those urls to the public. (In my case, we are onboarding clients manually, and there is no registration mechanism
14+
available publicly.)
15+
16+
Leaking routes like below, is a security risk for us therefore we needed a way to easily verify which routes are exposed
17+
in each page. In this example, we are leaking the dashboard, 2FA endpoints and cashier predefined routes.
18+
![leak_example.png](images%2Fleak_example.png)
19+
20+
### Do I really need a browser extension for that?
21+
22+
Definitely not! Feel free to read the json lines of each page manually. It's a nightmare.
23+
![readityourself.gif](images%2Freadityourself.gif)
24+
25+
#### Does this work with all Ziggy websites?
26+
No.
27+
28+
#### Does this work with SSR-rendered Ziggy websites?
29+
No.
30+
31+
#### Does this work in general?
32+
Sometimes.

_locales/en/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}

icons/icon128.png

25.8 KB
Loading

icons/icon16.png

789 Bytes
Loading

icons/icon19.png

749 Bytes
Loading

icons/icon48.png

5.82 KB
Loading

images/leak_example.png

59.5 KB
Loading

images/readityourself.gif

23.4 MB
Loading

images/screenshot.png

202 KB
Loading

manifest.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "Ziggy Route Debugger",
3+
"version": "0.0.1",
4+
"manifest_version": 2,
5+
"description": "Ziggy Route Debugger allows you to easily debug the exposed routes in each page of your site",
6+
"homepage_url": "https://github.com/chrysanthos/ziggy-route-debugger",
7+
"icons": {
8+
"16": "icons/icon16.png",
9+
"48": "icons/icon48.png",
10+
"128": "icons/icon128.png"
11+
},
12+
"default_locale": "en",
13+
"browser_action": {
14+
"default_icon": "icons/icon19.png",
15+
"default_title": "Ziggy Route Analysis",
16+
"default_popup": "src/page_action/page_action.html"
17+
},
18+
"permissions": [
19+
"tabs",
20+
"activeTab",
21+
"http://*/*",
22+
"https://*/*"
23+
]
24+
}

0 commit comments

Comments
 (0)