我們已經制定了一個ASP.NET應用程序和筆測試報告下列錯誤無法插入NULL值到主鍵列錯誤
Improper error handling is observed in the application.The application discloses database details such as table name and column name during SQL query execution. This vulnerability is identified when the parameter 「txtCity」 is left blank and the form is submitted.
數據庫細節在下面的錯誤披露:
Cannot insert the value NULL into column ‘column_name’, table ‘table_name’; column does not allow nulls. INSERT fails. The statement has been terminated."
sql語句作爲存儲過程執行。我們無法複製網頁上的錯誤,但我們嘗試並提交表單。請幫助我們解決問題。您的幫助將不勝感激。 web配置文件的
你問如何提交表單而不提供城市?您可以使用Fiddler將提交的值混淆,例如,如果客戶端驗證阻止您重現此操作,則不需要提交任何「txtCity」或禁用javascript。還要在web.config中打開自定義錯誤,以便不顯示錯誤消息。 –
你能告訴我們表結構,過程和代碼嗎? – SchmitzIT