OFFAT icon indicating copy to clipboard operation
OFFAT copied to clipboard

Alert(1) Popups on HTML Output

Open farsheedify opened this issue 1 year ago • 2 comments

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

farsheedify avatar Dec 04 '24 09:12 farsheedify

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.

dmdhrumilmistry avatar Dec 07 '24 19:12 dmdhrumilmistry

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.

farsheedify avatar Dec 07 '24 20:12 farsheedify