The Web Application Hacker’s Handbook Discovering and Exploiting Security Flaws



Download 5,76 Mb.
Pdf ko'rish
bet862/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   858   859   860   861   862   863   864   865   ...   875
Bog'liq
3794 1008 4334

Use Generic Error Messages

The application should never return verbose error messages or debug infor-

mation to the user’s browser. When an unexpected event occurs (such as an

error in a database query, a failure to read a file from disk, or an exception in

an external API call), the application should return the same, generic message

informing the user that an error occurred. If it is necessary to record debug

information for support or diagnostic purposes, then this should be held in a

server-side log which is not publicly accessible, and an index number to the

relevant log entry may be returned to the user, enabling them to report this

when contacting the helpdesk, if required.

Most application platforms and web servers can be configured to mask error

information from being returned to the browser:

■■

In ASP.NET, verbose error messages can be suppressed using the 



customErrors

element of the 

Web.config

file, by setting the mode

attribute to 

On

or 



RemoteOnly

and specifying a custom error page in the

defaultRedirect

node.


■■

In the Java Platform, customized error messages can be configured

using the error-page element of the 

web.xml


file. The 

exception-type

node can be used to specify a Java exception type, or the 

error-code

node used to specify an HTTP status code, and the custom page to 

be displayed in the event of the specified error can be set using the

location

node.



Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   858   859   860   861   862   863   864   865   ...   875




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish