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

Alert(1) Popups on HTML Output #143

Open
farsheedify opened this issue Dec 4, 2024 · 2 comments
Open

Alert(1) Popups on HTML Output #143

farsheedify opened this issue Dec 4, 2024 · 2 comments

Comments

@farsheedify
Copy link

I want to visualize the results in HTML format. However, the generated report contains numerous alert(1) and confirm(1) scripts, causing continuous pop-ups that make the report unreadable. I think they are the payloads for testing. I ran the scan against VAmPI API with the following command:

offat -f http://x.x.x.x:5000/openapi.json --server http://x.x.x.x:5000 -H "Authorization: Bearer [theToken]" -of html -o result.html

Here is what I get when opening the report:

alert(1)

The scripts inside the report:

alert(1) in HTML

@dmdhrumilmistry
Copy link
Collaborator

Hi @farsheedify,

Yes, those are test payloads popping up. I'd suggest you to use JSON report instead of html as it's currently insecure.

BTW we're migrating this project to golang from python, you can check out golang version here.

@farsheedify
Copy link
Author

Thank you for your reply. @dmdhrumilmistry
I'll definitely check it out. It would be great to have a visualized output in the Go version. This feature would be useful for presenting reports to other teams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants