I
IntraRELY
I have the following web service. I wanted to get some feedback on any
recommendantions that I can do to make this web service more secure. As you
can see there is some validation, but wanted to know if this should be
considered enough. the print_authenticate function tests the username and
passwords throught the database, but I also want to look for DOS attachs and
make sure I have the necessary precautions in place. There is also a dataset
being passed to the web service. If someone has the username and password,
it would be safe to assume, at least for this app, that they can pass
anything they want. This is all done through SSL. But my main concern I
guess right now is for the validation aspect.
TIA,
Steve
<WebMethod()> _
Public Function test_printUpdate(ByVal dsPrint As dsPrint, ByVal username As
String, ByVal password As String) As dsChecksPrint
If username.Length > 30 Or _
password.Length > 30 Then
Return Nothing
Else
If print_authenticate(username, password) = True Then
If Not (dsChecksPrint Is Nothing) Then
daPrint.Update(dsPrint)
Return dsPrint
Else
Return Nothing
End If
Else
Return Nothing
End If
End If
End Function
recommendantions that I can do to make this web service more secure. As you
can see there is some validation, but wanted to know if this should be
considered enough. the print_authenticate function tests the username and
passwords throught the database, but I also want to look for DOS attachs and
make sure I have the necessary precautions in place. There is also a dataset
being passed to the web service. If someone has the username and password,
it would be safe to assume, at least for this app, that they can pass
anything they want. This is all done through SSL. But my main concern I
guess right now is for the validation aspect.
TIA,
Steve
<WebMethod()> _
Public Function test_printUpdate(ByVal dsPrint As dsPrint, ByVal username As
String, ByVal password As String) As dsChecksPrint
If username.Length > 30 Or _
password.Length > 30 Then
Return Nothing
Else
If print_authenticate(username, password) = True Then
If Not (dsChecksPrint Is Nothing) Then
daPrint.Update(dsPrint)
Return dsPrint
Else
Return Nothing
End If
Else
Return Nothing
End If
End If
End Function