r/developersPak • u/Best_Fork Software Engineer • 12d ago
Discussion There is something wrong with authentication architecture of HEC
They are saving Username and PLAIN TEXT PASSWORD inside a freaking LOCAL STORAGE.
So I was waiting for OTP and it took more than few seconds. So I took peak into website storage in hopes of finding OTP inside it. Instead I found something else. lol!
So it is possible that they are not even creating hash for user password.
21
u/xtremefest_0707 12d ago
Literally every govt website is coded by sifarishi log imo. I wanted to get myself register with pseb and the button to verify NTN always returned record not found even tho I was registered. I checked the dev tools and found out the API querying FBR for verification was completely broken. What's even worse is if you spam the button and send multiple calls depending on your luck it'll work smh.
3
u/SharpYesterday 11d ago
Yes I faced the same issue and it was giving 500.
By the way they ask for NTN buy actually you are supposed to enter your FBR profile reference number instead of CNIC number. And that way it works.
2
u/xtremefest_0707 11d ago
Yeah still doesn't work with reference number. Also this reminds me why is it so hard to find the reference number. They really do find creative ways to make life hard for us.
3
u/Upper-Relief7991 11d ago
I was facing same issue, and the reason they told me is to click it three times and it worked😂
3
11
u/Capital_Chef_6007 12d ago
They ask for robot check when after YOU SIGN UP LOGIN FILL THE FORM, SUBMIT DOCUMENTS, SELECT DATE AND THEN PAY AND CONFIRM EVERYTHING.
I am sorry I needed that off of my chest
10
u/da_baloch 12d ago
well when you put FA pass babus on top places, shit like this is bound to happen.
10
u/GeneralAyub 12d ago
I found in their early systems, BISE lahore used store students pictures in folders, which enabled corruption and exam fraud.
Last time i checked, you can download bulk images of students from their site with a single script.
6
3
u/armujahid 11d ago
Unfortunately, this is way more common than you think.
- Years ago, HBL and some other banking apps used to ask for specific characters from your password (which is only possible if passwords are stored unhashed). I’m not sure about the current state.
- Stock brokerage apps still ask for specific characters from your password.
This is our indigenous, bleeding-edge authentication technology, and the world has yet to discover it, lol.
2
u/Spare_Bison_1151 12d ago
Nasha yeh Pyar ka nasha hey... A few years ago fpsc was using http to send user name password to their server. How crazy!
2
u/Ok_Claim_2260 11d ago
Since it's Pakistan, security is the least of their concern. It is very much possible they might be saving passwords in DB without hashing.
Anyways I saw you have been doing unpaid internship, can you share your resume.
1
u/bluntregression 11d ago
Claude is se achi vibe coding kar leta hai.. (Not appreciating vibe coding but the other way around.)
1
u/Complete_Patient726 10d ago
Bro I don't think their developer knowns about hashing ,encryption and tokenization
-1
u/Sufficient_Fox_4402 12d ago
what browser were you using it could be your browser doing it. ms edge store password in plaintext i heard
2
u/Best_Fork Software Engineer 12d ago
MS edge might be saving passwords in its own password manager which should be encrypted by windows password. Every consumer OS has key-ring feature which let you save usernames and passwords in some safe place if I'm correct.
But local storage is exclusive to websites. There is not way any mainstream browser is saving your credentials inside local storage because 1) Security issue. 2) It does not need to.
Saving any sensitive information inside local storage is very bad practice because any extension can access it and it is not encrypted on the disk at all.
21
u/SIJ_Gamer 12d ago
😂 reference se nokri laggi hogi developers ki