mirror of
https://github.com/ibratabian17/OpenParty.git
synced 2026-01-15 14:22:54 -03:00
Fix vulnerability that exposes user ticket
This commit is contained in:
@@ -163,7 +163,7 @@ exports.initroute = (app) => {
|
||||
// If the profile is found in the local data
|
||||
if (userProfile && userProfile.name) {
|
||||
console.log(`[ACC] Account Found For: `, profileId);
|
||||
return { ...userProfile, ip: req.clientIp, ticket: ticket };
|
||||
return { ...userProfile, ip: req.clientIp, ticket: '' };
|
||||
} else {
|
||||
// If the profile is not found locally, fetch from external source
|
||||
console.log(`[ACC] Asking Official Server For: `, profileId);
|
||||
@@ -185,6 +185,8 @@ exports.initroute = (app) => {
|
||||
// Add the fetched profile to local storage
|
||||
addUser(profileId, defaultProfile);
|
||||
|
||||
defaultProfile.ticket = ''
|
||||
|
||||
return defaultProfile;
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user