Language: JavaScript
Label: safe
CWE: CWE-352 \u2014 Cross-Site Request Forgery (CSRF)
The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.

Code:
  addWastageSaleItem: function() {

    var html = '<tr>\
                <td class="col-md-5"> <input type="text" name="wastageSaleItem[]" placeholder="Enter Item name and details" class="wastageSaleItem form-control" required> </td>\
                <td class="col-md-2"> <input type="number" step="any" name="wastageSaleItemQnt[]" class="wastageSaleItemQnt form-control" required> </td>\
                <td class="col-md-2"> <input type="number" step="any" name="wastageSaleItemPrice[]" class="wastageSaleItemPrice form-control" required> </td>\
                <td class="text-right wastageSaleItemSubtotal">0.00</td>\
                <td style="width: 30px; !important"> \
                    <i style="cursor: pointer;" class="fa fa-trash-o removeThisItem"></i> \
                </td> \
            </tr>';

    $("#productTable > tbody").append(html);

    /* Focus the item name input field */
    $(".wastageSaleItem").focus();

    /* Count all totals */
    this.grandTotal();

  }