Skip to content

Commit

Permalink
Add SSRF capability
Browse files Browse the repository at this point in the history
  • Loading branch information
estringana committed Jan 3, 2025
1 parent 97358f8 commit 537c557
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class engine_listener : public listener_base {
[[nodiscard]] std::unordered_set<product> get_supported_products() override
{
return {known_products::ASM, known_products::ASM_DD,
known_products::ASM_DATA, known_products::ASM_RASP_LFI};
known_products::ASM_DATA, known_products::ASM_RASP_LFI, known_products::ASM_RASP_SSRF};
}

protected:
Expand Down
5 changes: 5 additions & 0 deletions appsec/src/helper/remote_config/product.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ struct known_products {
std::string_view{"ASM_FEATURES"}};
static inline constexpr product ASM_RASP_LFI{
std::string_view{"ASM_RASP_LFI"}};
static inline constexpr product ASM_RASP_SSRF{
std::string_view{"ASM_RASP_SSRF"}};
static inline constexpr product UNKNOWN{std::string_view{"UNKOWN"}};

static product for_name(std::string_view name)
Expand All @@ -50,6 +52,9 @@ struct known_products {
if (name == ASM_RASP_LFI.name()) {
return ASM_RASP_LFI;
}
if (name == ASM_RASP_SSRF.name()) {
return ASM_RASP_SSRF;
}

return UNKNOWN;
}
Expand Down

0 comments on commit 537c557

Please sign in to comment.