Похожие чаты

I just like to know that hacker / user can

bypass anything in server? for example if i have a controller like this:
IActionResult Test()
{
// this will check in database that user is admin or not.
var isAdmin = _user.IsAdmin(userID);

if (!isAdmin)
{
return NotFound();
}

//do something.
}

can user / hacker bypass that? in other word hacker can bypass that or hack will happen if i forgot to check that user is admin or not in some where?

5 ответов

11 просмотров

If hacker really wanna see it,he can try userID again and again,it will take a lot of time,but hacker can do it

Mr-Thieves Автор вопроса
Sean ren
If hacker really wanna see it,he can try userID ag...

did you mean try to guss which userID is admin? if that you mean so it can't since that userID came from claim and claim is what user used to auth in website.

If this is a server, hacker can try root(administrator in Windows) password again and again.

Mr-Thieves Автор вопроса
Sean ren
If this is a server, hacker can try root(administr...

hacker first should find server the try to hack it but still that is not my answer i am asking about security in my own project not server, firewal ad anything like that

Mr Thieves
hacker first should find server the try to hack it...

y not use action filter, and have claims set with role as admin at the user login itself

Похожие вопросы

Обсуждают сегодня

А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
@samkazemian - couple questions: Update on frxBTC? - This would do well with the current influx of institutional investment entering the space Update on future veFXS streams...
Costi
16
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Does anyone here have a connection Mullvad? it would be nice to know what it would take to have them accept BCH 0-conf.
tl121x
16
Подобного рода ;Следующие три строки это директивы ассемблера, ;которые можно не задавать, т.к.работаем в Visual Studio. ;Символ ";" - это начало однострочного комментария ...
Егор Анелькин
3
Can an XMR transaction be tracked from its sender to its receiver by performing blockchain analysis, no matter how many addresses are used?
Trkz342
16
Кто-нибудь знает почему SPM клонирует репо целиком? Некоторые репы просто огромные, как та же swift-syntax которая нужна для использования макросов. Сначала подумал, что это...
iMike
6
I arrived here after a Chico Crypto show highlighted the project & the Team - the fact that the Team had a long history of successfully working with household names gave me e...
Banter is Bullish
5
Карта сайта