diff --git a/exposures/files/cargo-toml-file.yaml b/exposures/files/cargo-toml-file.yaml new file mode 100644 index 0000000000..41efea3b1b --- /dev/null +++ b/exposures/files/cargo-toml-file.yaml @@ -0,0 +1,30 @@ +id: cargo-toml-file + +info: + name: Cargo TOML File Disclosure + author: DhiyaneshDk + severity: info + reference: + - https://doc.rust-lang.org/cargo/reference/manifest.html + metadata: + verified: true + shodan-query: html:"Cargo.toml" + tags: exposure,files,cargo + +requests: + - method: GET + path: + - '{{BaseURL}}/Cargo.toml' + + matchers-condition: and + matchers: + - type: word + part: body + words: + - "[package]" + - "[dependencies]" + condition: and + + - type: status + status: + - 200