Since iI write an API for a website, I'm interested in his login system and his requests but something bothered me, I have the impression that the security system is weak...
When I login, I send POST request containing the login form, but my login cookie is plain text saved ( maybe insecurly deserialized ) ->
a:2:{i:0;s:8:"username";i:1;s:8:"password";}
After successful login, the website startstarts the session : it definedefines some variblevariable/functions, itsit's the first thing it does for any user loading. One of these variables is a random 40 string characters, used to validate user requests during the session. This string changes each time the session is loaded.
This website useuses AJAX to format POST request. They are sent unencrypted, itsit's possible to intercept, edit, then send requestrequests without problems. Typical POST request looks like :
I edited the request to remove every useless elements, in fact this POST can be accepted by the server if I fill bracket with right data. I edited the request to remove every useless elements, in fact this POST can be accepted by the server if I fill bracket with the right data.
Real request body to illustrate what kind of data iI send (copy pasted/pasted from wireshark) :
Result : JavaScript pop-up saying imI'm connected from somewhere else
Result : Empty Response
Result : JavaScript pop-up saying imI'm connected from somewhere else BUT IN ATNOTHERANOTHER LANGUAGE
-----------------------------------------------------------------------------
Is there a risk that a malicious crafted request, in any way, can bypass the key argument and control accounts arbitrarily ? Especially knowing that PHP array() (and maybe serialize()) function are used...
-----------------------------------------------------------------------------
Thank you in advance for your answers Is there a risk that a maliciously crafted request, in any way, can bypass the key argument and control accounts arbitrarily? Especially knowing that PHP array() (and maybe serialize()) function are used...