FCLT#86405 Client-side generatie API-tokens kwetsbaarheid
svn path=/Website/branches/v2024.3/; revision=67041
This commit is contained in:
@@ -26,7 +26,7 @@ var prs_perslid_key = getQParamInt("prs_key");
|
||||
var prsauthparams = prs.checkAutorisation(prs_perslid_key);
|
||||
user.auth_required_or_abort(prsauthparams.writesys);
|
||||
|
||||
var newapi = shared.random(20);
|
||||
var newapi = user.has("WEB_FACTAB")?shared.random(20):"<<"+L("lcl_prs_generate_apikey") + ">>";
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
@@ -23,7 +23,13 @@ var JSON_Result = true;
|
||||
<%
|
||||
protectRequest.validateToken();
|
||||
|
||||
//user.checkAutorisation("WEB_FACTAB"); // altijd nodig
|
||||
|
||||
var prs_perslid_apikey = getFParam("prs_apikey");
|
||||
if (!user.has("WEB_FACTAB"))
|
||||
{
|
||||
prs_perslid_apikey = shared.random(20); // altijd genereren
|
||||
}
|
||||
var prs_perslid_key = getFParamInt("prs_key");
|
||||
|
||||
var prsauthparams = prs.checkAutorisation(prs_perslid_key);
|
||||
|
||||
Reference in New Issue
Block a user