docs: add remaining docs for classes in app/logical.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# A TCPSocket wrapper that disallows connections to local or private IPs. Used for SSRF protection.
|
||||
# https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
|
||||
|
||||
# A TCPSocket wrapper that disallows connections to local or private IPs. Used
|
||||
# by {Danbooru::Http} to prevent server-side request forgery (SSRF) attacks. For
|
||||
# example, if we try to download an image from http://example.com/image.jpg, but
|
||||
# example.com resolves to 127.0.0.1, then the request is prohibited.
|
||||
#
|
||||
# @see https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
|
||||
require "resolv"
|
||||
|
||||
class ValidatingSocket < TCPSocket
|
||||
|
||||
Reference in New Issue
Block a user