ssrf_filter
ssrf_filter copied to clipboard
When try to get body I have error NoMethodError: undefined method `closed?' for nil:NilClass
In version "1.1.0" when try to get body I have error. For example:
photo_url = any photo url
SsrfFilter.get(photo_url).body
Error:
NoMethodError: undefined method `closed?' for nil:NilClass
raise IOError, 'attempt to read body out of block' if @socket.closed?
Can you share a sample url to reproduce the issue?
I get this same error with Carrierwave trying to set a remote url for an image.
Can you share a sample url to reproduce the issue?
I think my issue is caused by https://github.com/arkadiyt/ssrf_filter/issues/56
For example photo_url = 'https://ssl.gstatic.com/ui/v1/icons/mail/rfr/logo_gmail_lockup_dark_2x_r5.png'
In version 1.0.8 when we try get a photo SsrfFilter.get(photo_url) answer:
#<Net::HTTPOK 200 OK readbody=true>
In version 1.1.0 when we try get a photo SsrfFilter.get(photo_url) answer:
#<Net::HTTPOK 200 OK readbody=false>
Same issue for a private project that was solved by downgrading to 1.0.8
I confirm the fix by https://github.com/arkadiyt/ssrf_filter/pull/60