Skip to content

Commit

Permalink
Merge pull request #86 from OWASP/bump-project
Browse files Browse the repository at this point in the history
Bump project version and deps
  • Loading branch information
dmdhrumilmistry committed Apr 27, 2024
2 parents e139606 + 973482f commit 529038b
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 94 deletions.
36 changes: 36 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Automatically Tests for vulnerabilities after generating tests from openapi spec
- [x] Broken Access Control
- [x] Basic Command Injection
- [x] Basic XSS/HTML Injection test
- [x] Basic SSTI test
- [ ] Broken Authentication

## Features
Expand All @@ -28,13 +29,48 @@ Automatically Tests for vulnerabilities after generating tests from openapi spec
- Proxy Support
- Secure Dockerized Project for Easy Usage
- Open Source Tool with MIT License
- Github Action

## Demo

[![asciicast](https://asciinema.org/a/9MSwl7UafIVT3iJn13OcvWXeF.svg)](https://asciinema.org/a/9MSwl7UafIVT3iJn13OcvWXeF)

> Note: The columns for 'data_leak' and 'result' in the table represent independent aspects. It's possible for there to be a data leak in the endpoint, yet the result for that endpoint may still be marked as 'Success'. This is because the 'result' column doesn't necessarily reflect the overall test result; it may indicate success even in the presence of a data leak.
## Github Action

- Create github action secret `url` for your repo
- Setup github action workflow in your repo `.github/workflows/offat.yml`

```yml
name: OWASP OFFAT Sample Workflow

on:
push:
branches:
- dev
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: "download swagger/OAS file"
run: curl ${url} -o /tmp/swagger.json
env:
url: ${{ secrets.url }}

- name: "OWASP OFFAT CICD Scanner"
uses: OWASP/OFFAT@main # OWASP/OFFAT@v0.17.3
with:
file: /tmp/swagger.json # or ${{ secrets.url }}
rate_limit: 120
artifact_retention_days: 1
```

> Prefer locking action to specific version `OWASP/OFFAT@v0.17.3` instead of using `OWASP/OFFAT@main` and bump OFFAT action version after testing.
## PyPi Downloads

| Period | Count |
Expand Down
5 changes: 5 additions & 0 deletions src/offat/tester/tester_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ def generate_and_run_tests(
capture_failed=capture_failed,
)

console.print(
"The columns for 'data_leak' and 'result' in the table represent independent aspects. It's possible for there to be a data leak in the endpoint, yet the result for that endpoint may still be marked as 'Success'. This is because the 'result' column doesn't necessarily reflect the overall test result; it may indicate success even in the presence of a data leak."
)

console.rule()
result_summary = ResultSummarizer.generate_count_summary(
results, table_title='Results Summary'
)
Expand Down
Loading

0 comments on commit 529038b

Please sign in to comment.