Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rbidou committed Nov 25, 2023
1 parent 22b61a6 commit 3b8a680
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Security modules, technology, and operations are provided in the table below.
| HTTP Parameter Polution | Grouping | Prevents HPP attacks attempts |

## Supported Frameworks
`pyrasp` 0.3.0 supports Flask, FastAPI and Flask
`pyrasp` 0.3.x supports Flask, FastAPI and Flask

> **IMPORTANT** FastAPI support requires `starlette` >= 0.28.0
Expand Down Expand Up @@ -90,7 +90,7 @@ MIDDLEWARE = [
At startup of the application `pyrasp` loading information is displayed.

```
### PyRASP v0.3.0 ##########
### PyRASP v0.3.1 ##########
[+] Starting PyRASP
[+] Loading configuration from rasp.json
[+] XSS model loaded
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyrasp"
version = "0.3.0"
version = "0.3.1"
authors = [
{ name = "Renaud Bidou", email = "[email protected]" }
]
Expand Down
10 changes: 5 additions & 5 deletions pyrasp/pyrasp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = '0.3.0'
VERSION = '0.3.1'

from pprint import pprint
import time
Expand Down Expand Up @@ -686,6 +686,10 @@ def check_inbound_attacks(self, host, request_method, request_path, source_ip, t

(attack_location, attack_payload) = (None, None)

ignore = False
attack_id = None
attack = None

# Check if source is whitelisted
whitelist = False

Expand All @@ -696,10 +700,6 @@ def check_inbound_attacks(self, host, request_method, request_path, source_ip, t
# Not whitelisted, going through security tests
if not whitelist:

ignore = False
attack_id = None
attack = None

### Rules to be applied to all requests

# Check if source IP is already blacklisted
Expand Down

0 comments on commit 3b8a680

Please sign in to comment.