Skip to content

Commit

Permalink
Release v1.17.0-alpha1, fix variadic argument parsing, update validat…
Browse files Browse the repository at this point in the history
…or tests, update release actions to node-20 (#267)
  • Loading branch information
Anilm3 authored Feb 20, 2024
1 parent 6f5f35e commit d438b4e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Display structure of downloaded files
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# libddwaf release
### v1.17.0-alpha1 ([unstable](https://github.com/DataDog/libddwaf/blob/master/README.md#versioning-semantics))
#### Fixes
- Fix parsing of variadic arguments ([#267](https://github.com/DataDog/libddwaf/pull/267))

#### Miscellaneous
- Update node-16 actions to node-20 ones ([#266](https://github.com/DataDog/libddwaf/pull/266))

### v1.17.0-alpha0 ([unstable](https://github.com/DataDog/libddwaf/blob/master/README.md#versioning-semantics))
#### Changes
- Multivariate operator support ([#241](https://github.com/DataDog/libddwaf/pull/241))
Expand Down
2 changes: 1 addition & 1 deletion src/condition/structured_condition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ template <typename Self> class base_impl : public base_condition {
return std::array<parameter_specification, sizeof...(Is)>{{
{
param_names[Is],
argument_retriever<typename func_traits::template arg_type<Is>>::is_optional,
argument_retriever<typename func_traits::template arg_type<Is>>::is_variadic,
argument_retriever<typename func_traits::template arg_type<Is>>::is_optional,
}...,
}};
}
Expand Down
4 changes: 2 additions & 2 deletions validator/tests/rules/structured/001_lfi_basic_run_match.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
runs: [
{
persistent-input: {
server.app.include_path: "documents/../../../../../../../../../etc/passwd",
server.io.fs.file: "documents/../../../../../../../../../etc/passwd",
server.request.query: [ "../../../../../../../../../etc/passwd" ]
},
rules: [
{
"rsp-930-001": [
{
resource: {
address: "server.app.include_path",
address: "server.io.fs.file",
value: "documents/../../../../../../../../../etc/passwd"
},
params: {
Expand Down
7 changes: 6 additions & 1 deletion validator/tests/rules/structured/ruleset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ rules:
conditions:
- parameters:
resource:
- address: server.app.include_path
- address: server.io.fs.file
params:
- address: server.request.query
- address: server.request.body
- address: server.request.path_params
- address: grpc.server.request.message
- address: graphql.server.all_resolvers
- address: graphql.server.resolver
operator: lfi_detector
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.0-alpha0
1.17.0-alpha1

0 comments on commit d438b4e

Please sign in to comment.