가입 후 초대 링크를 공유하면 동영상 재생 및 초대 보상을 받을 수 있습니다.

Robert Clapp
@RobertClapp
가입 June 2009
1.1K 팔로잉 중    113 팬
found an endpoint that validated the URL path but completely skipped the host. it handled audio transcription. the check verified that the path string started with the expected prefix, saw a match, and made the downstream fetch. because the host was never pinned, an external server serving that exact path passed every check. anyone with a public token could point the endpoint at their own box and use the server as a proxy to burn transcription credits. the fix: stop taking URLs from the client entirely. client sends an internal storage key, router validates the prefix, server mints the fetch URL from its own storage origin. accepting full URLs from clients usually just means you built an accidental proxy.
더 보기