mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- Add plugin/webhook/validate.go as single source of truth for SSRF protection: reserved CIDR list parsed once at init(), isReservedIP(), and exported ValidateURL() used at registration/update time - Replace unguarded http.Client in webhook.go with safeClient whose Transport uses a custom DialContext that re-resolves hostnames at dial time, defeating DNS rebinding attacks - Call webhook.ValidateURL() in CreateUserWebhook and both UpdateUserWebhook paths to reject non-http/https schemes and reserved/private IP targets before persisting - Strip internal service response body from non-2xx error log messages to prevent data leakage via application logs |
3 months ago | |
|---|---|---|
| .. | ||
| test | 4 months ago | |
| acl_config.go | 5 months ago | |
| acl_config_test.go | 5 months ago | |
| activity_service.go | 4 months ago | |
| attachment_exif_test.go | 4 months ago | |
| attachment_service.go | 4 months ago | |
| auth_service.go | 5 months ago | |
| auth_service_client_info_test.go | 5 months ago | |
| common.go | 4 months ago | |
| connect_handler.go | 6 months ago | |
| connect_interceptors.go | 4 months ago | |
| connect_services.go | 5 months ago | |
| header_carrier.go | 6 months ago | |
| health_service.go | 6 months ago | |
| idp_service.go | 4 months ago | |
| instance_service.go | 4 months ago | |
| memo_attachment_service.go | 4 months ago | |
| memo_relation_service.go | 4 months ago | |
| memo_service.go | 4 months ago | |
| memo_service_converter.go | 7 months ago | |
| memo_service_filter.go | 10 months ago | |
| reaction_service.go | 4 months ago | |
| resource_name.go | 5 months ago | |
| shortcut_service.go | 4 months ago | |
| user_service.go | 3 months ago | |
| user_service_stats.go | 5 months ago | |
| v1.go | 4 months ago | |