One of my developers left the IP inside his code :
The code is as follows :
[WebMethod]
public string UploadFile(byte[] f, string fileName)
{
try
{
MemoryStream ms = new MemoryStream(f);
FileStream fs = new FileStream("http://103.16.141.197/ProBuildIndia/Operator/Sample/" + fileName, FileMode.Create);
ms.WriteTo(fs);
ms.Close();
fs.Close();
fs.Dispose();
return "OK";
}
catch (Exception ex)
{
return ex.Message.ToString();
}
}
If you note in his code he revealed the 103.16.141.197
.
The known vulnerabilities I can think of are:
The attacker can run a nmap scan and detect which OS and ports were open
If directory listing was not properly implemented then it would be a issue of browsing directory
If the application was publicly accessible there were possibilities to copy the application design
The above were the known vulnerabilities that I could think of for revealing IP, but what are other vulnerabilities?