'Checkmarx - unrestricted file upload issue
I am facing "Improper resource access authorization" in checkmarx scan for the below snippet code (byteArrayInputStream.read())
public ServletInputStream getInputStream() {
final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(this.body.getBytes());
return new ServletInputStream() {
public int read() {
return byteArrayInputStream.read();
}
};
}
Please help on this issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
