APITable до 1.13.0-beta.1 аннотирует обработчик создания InternalNotifyController с помощью requireLogin = false. ResourceInterceptor учитывает эту аннотацию, возвращаясь до проверки любого сеанса или ключа API, а шлюз nginx, поставляемый с продуктом, пересылает каждый запрос /api на внутренний сервер, поэтому POST /api/v1/internal/notification/create доступен любому неаутентифицированному клиенту, который может связаться с шлюзом. Злоумышленник может сохранять произвольные уведомления в apitable_player_notification для любого идентификатора пользователя, который он называет, а поскольку fromUserId может быть установлен в 0, сообщение сохраняется у системного отправителя и отображается в почтовом ящике жертвы как законное системное уведомление. Содержимое дополнительных элементов тела сохраняется дословно и пересылается во внешний интерфейс.
Показать оригинальное описание (EN)
APITable through 1.13.0-beta.1 annotates the create handler of InternalNotifyController with requiredLogin = false. ResourceInterceptor honours that annotation by returning before any session or API key is validated, and the nginx gateway shipped with the product proxies every /api request to the backend server, so POST /api/v1/internal/notification/create is reachable by any unauthenticated client that can reach the gateway. An attacker can persist arbitrary notifications in apitable_player_notification against any user ID they name, and because fromUserId can be set to 0 the message is stored with the system sender and renders in the victim's inbox as a legitimate system notification. The body extras content is stored verbatim and forwarded to the frontend.
Характеристики атаки
Последствия
Строка CVSS v4.0