Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(AtomicLevel): demonstrate Handler is not vulnerable to XSS #1477

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

abhinav
Copy link
Collaborator

@abhinav abhinav commented Dec 7, 2024

Adds a unit test and a fuzz test to demonstrate
that the AtomicLevel handler is not vulnerable to XSS.

I ran the fuzz test on my computer for 10 minutes on my laptop
with no cases where <...> was present in the response body.

...
fuzz: elapsed: 9m57s, execs: 43145040 (95839/sec), new interesting: 442 (total: 445)
fuzz: elapsed: 10m0s, execs: 43396113 (83690/sec), new interesting: 442 (total: 445)

Refs #1476

Adds a unit test and a fuzz test to demonstrate
that the AtomicLevel handler is not vulnerable to XSS.

I ran the fuzz test on my computer for 10 minutes on my laptop
with no cases where `<...>` was present in the response body.

```
...
fuzz: elapsed: 9m57s, execs: 43145040 (95839/sec), new interesting: 442 (total: 445)
fuzz: elapsed: 10m0s, execs: 43396113 (83690/sec), new interesting: 442 (total: 445)
```

Resolves #1476
@abhinav
Copy link
Collaborator Author

abhinav commented Dec 7, 2024

This change is part of the following stack:

Change managed by git-spice.

Copy link

codecov bot commented Dec 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.45%. Comparing base (0ba452d) to head (3a7b092).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1477   +/-   ##
=======================================
  Coverage   98.45%   98.45%           
=======================================
  Files          53       53           
  Lines        3562     3562           
=======================================
  Hits         3507     3507           
  Misses         46       46           
  Partials        9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abhinav abhinav requested review from alxn and sywhang December 10, 2024 18:10
@abhinav abhinav merged commit 5f00c34 into master Dec 10, 2024
8 checks passed
@abhinav abhinav deleted the atomiclevel-handler-no-xss branch December 10, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants