1

I am trying to scan java code using checkmarkx.

I have a JPA repository with the below method.

@Query(value = "select t.* from transactions t, applications a, payment_processors pp "
      + "where t.paymentProcessorTransactionId = :x " + "and t.asyncPayment = 1 "
      + "and t.applicationId = a.id " + "and a.paymentProcessorId = pp.id "
      + "and pp.name = :y ", nativeQuery = true)
  Transaction fetchAsyncTransactionByTransferCode(@Param("x") String x,
      @Param("y") String y);

After the scan, I am getting Improper Resource Access Authorization at param x and y.

And also getting Improper Exception Handling on these lines.

saurabh landge
  • 115
  • 1
  • 2
  • 9

0 Answers0