Closed Qwarctick closed 2 weeks ago
@darkspirit510 - can you help @Qwarctick with this? @Qwarctick - can you email a copy of your Wapiti JSON results file (along with the script/instructions on how you generated it), to: dave.wichers@owasp.org and I'll forward to @darkspirit510 and he'll likely just fix it for you. He's generally super quick on stuff like this.
Hi @Qwarctick,
thank you for reaching out. Maybe you misunderstood the test files. Did you use the one from the results dir for the tests at https://github.com/OWASP-Benchmark/BenchmarkUtils/tree/main/plugin/src/test/resources/testfiles
? Those intentionally do not contain ANY real finding to honor commercial tools disclousure policies. So to just prevent any issues here, the test files are just fake and contain one or two dummy results to test against. If you want to know how well a tool scores, you'll have to create a result file on your own.
Yes, the BenchmarkJava project contains some (older) actual result files, but those are all from open source tools and to test the whole BenchmarkJava and BenchmarkUtils project.
Ok, thanks for the information. I can see why it's done that way.
I'm generating a json file. I'll send it to you at address dave.wichers@owasp.org as soon as it's ready.
@Qwarctick My PR got merged, please recheck your result file and see if this issue can be closed 😊
Maybe I failed somewhere, but I tested with the json file I sended you by email.
Without the PR:
With the PR:
I built the sources with mvn install
, then used the script createScorecards.sh
Are you sure that you pulled BenchmarkUtils
correctly? I just did a clean checkout, mvn install
and generated the scorecard. I get results, as expected even better than yours.
My bad, I used a wrong expectedresults file. It works well. Well done !
Hello, I'm working with Wapiti and I'm having some trouble generating scorecards in json format correctly.
I saw that you had a parser for Wapiti's json format, but it doesn't seem to have been updated since a long time (https://github.com/OWASP-Benchmark/BenchmarkUtils/blob/main/plugin/src/main/java/org/owasp/benchmarkutils/score/parsers/WapitiJsonReader.java). The json example in the tests returns 0% for all categories, so I'm pretty confident that the parser doesn't work very well.
I can work on it but I can't find any information about the corresponding tags. For example,
CRLF Injection
is for label93
but what does that mean?Thanks in advance :)