From b09141f71dff3c15a9cfeae44327167fb6082206 Mon Sep 17 00:00:00 2001 From: anupamme Date: Tue, 28 Jul 2026 00:28:15 +0000 Subject: [PATCH] fix: V-001 security vulnerability Automated security fix generated by OrbisAI Security --- lib/waCmd/ALEATORIO/registro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/waCmd/ALEATORIO/registro.js b/lib/waCmd/ALEATORIO/registro.js index 890063cf..2bc044f6 100644 --- a/lib/waCmd/ALEATORIO/registro.js +++ b/lib/waCmd/ALEATORIO/registro.js @@ -1 +1 @@ -import{createHash as e}from"crypto";import{getDate as t}from"../../calendario.js";import{mapNet as r}from"../../funciones.js";const a=["rgfecha","rgnombre","rgedad","registrado"],n=/([^a-z0-9áéíóúñ :._\-\n]+)/gi;export default{comando:{clave:["rg","reg","unreg","unrg"]},nk:async(o,{conn:{fetchStatus:s,profilePictureUrl:i,sendMessage:g}})=>{const{zZz:{Ureg:c},groupMetadata:{participants:d},codex:l,args:u,chat:p,sender:m,command:h,senderNum:f,reply:b,reacMoji:N}=o,$=global.db.wulid[m]||global.db.wunet[m],{registrado:w}=$||{},{fechaCompleta:x,epoca:y}=t(m),k=r(d);if(["unreg","unrg"].includes(h)){const t=e("md5").update(m).digest("hex");return u[0]?u[0]!==t?b(c()[1]):($.registrado=!1,b(c()[2])):b(c()[0])}if(w)return b(c()[3]);if(!l||!l.includes("-"))return b(c()[4+(l?1:0)]);const[M,j]=[l.split("-")[0].replace(n,""),Math.round(l.split("-").pop())||NaN];if(isNaN(j)||M?.length>=15||j>31||j<12)return b(c()[5+(isNaN(j)?1:M?.length>=15?2:j>31?3:4)]);await N("📝");const z=await s(m).then((e=>e[0]?.status?.status??"~")).catch((e=>"~")),U=j<15?c()[13]:j<18?c()[14]:j<25?c()[15]:c()[16],v=z.length<5?[c()[17],x]:[c()[18],z.length<=27?z:z.substring(0,27)+"..."],C=c(f,M,y-j,U,z,e("md5").update(m).digest("hex"),k[m].split("@")[0])[19],R=await i(m).catch((e=>null)),q=[Date.now(),M,j,!0];for(let e=0;e{const{zZz:{Ureg:c},groupMetadata:{participants:d},codex:l,args:u,chat:p,sender:m,command:h,senderNum:f,reply:b,reacMoji:N}=o,$=global.db.wulid[m]||global.db.wunet[m],{registrado:w}=$||{},{fechaCompleta:x,epoca:y}=t(m),k=r(d);if(["unreg","unrg"].includes(h)){const t=e("md5").update(m).digest("hex");return u[0]?u[0]!==t?b(c()[1]):($.registrado=!1,b(c()[2])):b(c()[0])}if(w)return b(c()[3]);if(!l||!l.includes("-"))return b(c()[4+(l?1:0)]);const[M,j]=[l.split("-")[0].replace(n,""),Math.round(l.split("-").pop())||NaN];if(isNaN(j)||M?.length>=15||j>31||j<12)return b(c()[5+(isNaN(j)?1:M?.length>=15?2:j>31?3:4)]);await N("📝");const z=await s(m).then((e=>e[0]?.status?.status??"~")).catch((e=>"~")),U=j<15?c()[13]:j<18?c()[14]:j<25?c()[15]:c()[16],v=z.length<5?[c()[17],x]:[c()[18],z.length<=27?z:z.substring(0,27)+"..."],C=c(f,M,y-j,U,z,e("md5").update(m).digest("hex"),k[m].split("@")[0])[19],R=await i(m).catch((e=>null)),q=[Date.now(),M,j,!0];for(let e=0;e