1modm / petereport

PeTeReport is an open-source application vulnerability reporting tool.
https://1modm.github.io/petereport/
BSD 3-Clause "New" or "Revised" License
449 stars 131 forks source link

Import Findiings #62

Closed matholiveira91 closed 1 year ago

matholiveira91 commented 1 year ago

I had problems to import a findings csv to a report, and i have another problem i have a lot of hosts and a lot of vulnerabilities to manage, add then one by one manually i'll take me a lot of time. When i try to import a csv filie with a set of vulnerabilities i receive HTTP 500 error

ramsal commented 1 year ago

Same error when I generate PDF report imagen

ramsal commented 1 year ago

Same error when I generate PDF report imagen

Solved! I config debug true and detect special characters in my description

1modm commented 1 year ago

@ramsal thanks for the update, do you know which character was causing the issue? I would like to take a look.

Thanks!

ramsal commented 1 year ago

@ramsal thanks for the update, do you know which character was causing the issue? I would like to take a look.

Thanks!

this ☒ (U+2612)

1modm commented 1 year ago

@ramsal Found the issue, some unicode chars have problems with pandoc and latex. To fix the issue you can add to the line 985 the next option:'--pdf-engine', 'xelatex' :

output_pypandoc = pypandoc.convert_text(final_markdown_output, to='pdf', outputfile=pdf_file_output, format='md', extra_args=['-H', PDF_HEADER_FILE, '--from', 'markdown+yaml_metadata_block+raw_html', '--template', PETEREPORT_LATEX_FILE, '--table-of-contents', '--toc-depth', '4', '--number-sections', '--highlight-style', 'breezedark', '--filter', 'pandoc-latex-environment', '--listings', '--pdf-engine', 'xelatex'])

ramsal commented 1 year ago

Thanks! Regards!

1modm commented 1 year ago

@matholiveira91 Hi, I did some updates, could you try?

First update https://1modm.github.io/petereport/django/#upgrade-petereport

If doesn't works enable debug mode in app/config/petereport_config.pyand attach here the output