Kitaiti Makoto
21e6bcf4fe
[BUG FIX]Extend unparsed buffer for long content
1 year ago
Kitaiti Makoto
70b463a54a
Add test for Persian content
1 year ago
Kitaiti Makoto
48c861afc8
Follow Clippy
1 year ago
Kitaiti Makoto
8758b8c5c1
[REFACTORING]Extract CsrfProtection::seal_in_place()
1 year ago
Kitaiti Makoto
1ba0609ac3
Follow API change of ring
1 year ago
Trinity Pointard
29910f2829
remove stabilized feature
5 years ago
Trinity Pointard
89ecb38026
allow exceptions that don't change http verbe
5 years ago
Trinity Pointard
4a72ea2ec7
Use constant time comparison for slice
...
Thanks @ProgVal for the tip
5 years ago
Trinity Pointard
2f4644f9fb
Use constants instead of raw int and run Clippy
5 years ago
Trinity Pointard
9eb7b3f98b
Remove dependencies to unmatained crats
...
Remove dependency csrf 0.3 as unmatained and can't compile on arm8
Add ring to do required cryptography
Remove dependency to rand as ring provid CPRNG
5 years ago
Trinity Pointard
717fad53cf
Allow post request for clients without session
6 years ago
Trinity Pointard
46a3a3bd48
Don't insert token when method is GET
...
Don't insert token when method is unspecified or different from POST
Run cargo clippy
6 years ago
Trinity Pointard
37c71dc7f7
Upgrade to rocket 0.4.0-rc.1
6 years ago
Trinity Pointard
5a95b8b98c
Add tests on csrf_proxy
...
Add a macro must_finish, and use it in csrf_proxy's tests, to allow
detection of infinite loop in parser
6 years ago
Trinity Pointard
2805ce5dba
Add benchmarks
6 years ago
Trinity Pointard
bb97ed018d
Minimise cookie creation
...
Create new cookies only when loading html content
6 years ago
Trinity Pointard
b326a9893a
Do a better management of cookies
...
Don't store a cookie for each different path visited
Don't add csrf cookies if there is no session
Remove csrf cookie if session get dropped
6 years ago
Trinity Pointard
5d23ba4c6c
Fix #3
6 years ago
Trinity Pointard
90a4aeca83
Fix possible assertion error on slice copy
6 years ago
Trinity Pointard
c852e554ea
Fix possible index out of range
6 years ago
Thomas Letan
06e14f8349
Update to a more recent version of rocket and to nightly-2018-07-17
6 years ago
Trinity Pointard
2a1aa1e48d
Run cargo fmt
6 years ago
Trinity Pointard
15242489c4
Add test for CsrfFairing
...
Add dependancies required for tests
Fix encoding issue with some url encoders
6 years ago
Trinity Pointard
771b514a5a
Run cargo fmt
6 years ago
Trinity Pointard
1fe6947822
Remove some unreachable code
6 years ago
Trinity Pointard
483f3e91f3
Finish adding test to path.rs
6 years ago
Trinity Pointard
001773cacc
Add test and fix issues they revealed
...
Add test for truncated html
Fix issue where parser would loop on some invalid html
6 years ago
Trinity Pointard
f3ec5bd6dc
Run cargo fmt
6 years ago
Trinity Pointard
e16eb40fd9
Add test and fix issues they revealed
...
Add some tests
Fix issue when a buffer end at the wrong place, and prevent token from
being inserted
Correct comments and indentation
6 years ago
Trinity Pointard
896fcaf14b
Add support for multipart form
6 years ago
Trinity Pointard
0fbacab1bc
Add tests and fix parsing error
...
Add test for CsrfProxy
Fix errors new tests highlighted
6 years ago
Trinity Pointard
5309b7634a
Full rewrite of csrf_proxy
...
Full rewrite of csrf_proxy to make it more reliable
6 years ago
Trinity Pointard
91c5773d9f
Merge branch 'master' into plume
6 years ago
Trinity Pointard
ecf137c512
add test for MultiDyn segments of path
6 years ago
Trinity Pointard
fe0c864f73
Add test for dynamic path and support for multi-segment dynamic part
6 years ago
Trinity Pointard
f6e9c29311
base plume branch on the same rocket as Plume-org/Plume
6 years ago
Trinity Pointard
452c390665
base master on rocket 0.3 (released)
6 years ago
Trinity Pointard
e39e3e8ca1
add test for static path
6 years ago
Trinity Pointard
baed6a2bbf
add first tests to try codecov.io
6 years ago
Trinity Pointard
c7eff190e0
make doc test work
6 years ago
Trinity Pointard
e6e967cc91
split lib.rs into smaller files
6 years ago
Trinity Pointard
13ca47ef73
Fix a bug on CsrfProxy
...
Fix a bug where CsrfProxy would read data that was already present in
read buffer, where it should consider it uninitialized
Reported by @gled-rs on Plume-org/Plume#96
6 years ago
Trinity Pointard
871b9ef2d6
Make code more idiomatic
...
Remove all clippy warnings to make code more idiomatic
6 years ago
Trinity Pointard
c1e75e49db
Fix links in documentation
6 years ago
Trinity Pointard
0a403f4825
Add comments
6 years ago
Trinity Pointard
acce8261c9
Add documentation and some functions on builder
6 years ago
Trinity Pointard
50947b8715
run cargo fmt
6 years ago
Trinity Pointard
80687a64a8
Fix issue with cookie creation
...
Fix issue where CsrfToken was setting cookieswas setting cookies properly, but pseudo-proxying would not
6 years ago
Trinity Pointard
bbabb7b19d
Initial commit
...
add a fairing for automatic verification and tag insertion
6 years ago