Summary
GoWItness prior to version 2.3.6 is vulnerable to Arbitrary File Read
Product
GoWItness prior to 2.3.6
Impact
An unauthenticated attacker can perform an arbitrary file read using the file:// scheme in the url parameter to get an image of any file.
Steps to reproduce
- Navigate to: http://gowitnessIP/?url=file:///etc/passwd
You will get an image of the file /etc/passwd. Only HTTP and HTTPS schemes should be allowed.
Remediation
This issue was fixed in version 2.3.6 through the commit.
Credit
This issue was discovered and reported by Checkmarx Security Researcher
Omri Inbar.