Open hpraj2786 opened 4 months ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
@hpraj2786 Could you explain the issue in some more depth, just posting code is not helpful.
/triage needs-information
@strongjz
The error for reading data from conn is not handled properly, possibly causing the program to fail silently. Also, closing the connection (clientConn.Close()) without properly handling the error in the else branch after attempting to write to the connection.
FORTIFY software is reporting this issue as Cross-Site Scripting.
@hpraj2786 can you create a kind cluster and run a deployment. Then send a curl request and show the cross-site-scripting occuring .
/remove-kind bug
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev
on Kubernetes Slack.
Source Location : tcp.go:110 Code Snippet: clientConn.Close() } else { _, err = clientConn.Write(data[:length]) if err != nil { klog.Errorf("Error writing the first 4k of proxy data: %v", err)
Source Location: tcp.go:65
Code Snippet: data := make([]byte, 16384)