Samx Here
n1udSecurity


Server : Apache
System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
User : pragmatice ( 1003)
PHP Version : 8.2.24
Disable Function : NONE
Directory :  /tmp/tsx-1023/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //tmp/tsx-1023/17180-a648b5618666ca37da54bebb39921ec3c810de16
{"code":"(()=>{\nvar __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:true}):target,mod));var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var code_verification_exports={};__export(code_verification_exports,{get:()=>get,post:()=>post});module.exports=__toCommonJS(code_verification_exports);var crypto=__toESM(require(\"node:crypto\"));var util=__toESM(require(\"node:util\"));var import_session=__toESM(require(\"../shared/session.js\"));var import_assemble_params=__toESM(require(\"../shared/assemble_params.js\"));var import_conditional_body=__toESM(require(\"../shared/conditional_body.js\"));var import_reject_dupes=__toESM(require(\"../shared/reject_dupes.js\"));var import_weak_cache=__toESM(require(\"../helpers/weak_cache.js\"));var import_errors=require(\"../helpers/errors.js\");var formHtml=__toESM(require(\"../helpers/user_code_form.js\"));var import_form_post=__toESM(require(\"../response_modes/form_post.js\"));var import_user_codes=require(\"../helpers/user_codes.js\");var import_re_render_errors=require(\"../helpers/re_render_errors.js\");const parseBody=import_conditional_body.default.bind(void 0,\"application/x-www-form-urlencoded\");const randomFill=util.promisify(crypto.randomFill);const get=[import_session.default,import_assemble_params.default.bind(void 0,new Set([\"user_code\"])),__name(async function renderCodeVerification(ctx,next){const{features:{deviceFlow:{charset,userCodeInputSource}}}=(0,import_weak_cache.default)(ctx.oidc.provider).configuration();let secret=Buffer.allocUnsafe(24);await randomFill(secret);secret=secret.toString(\"hex\");ctx.oidc.session.state={secret};const action=ctx.oidc.urlFor(\"code_verification\");if(ctx.oidc.params.user_code){(0,import_form_post.default)(ctx,action,{xsrf:secret,user_code:ctx.oidc.params.user_code})}else{await userCodeInputSource(ctx,formHtml.input(action,secret,void 0,charset))}await next()},\"renderCodeVerification\")];const post=[import_session.default,parseBody,import_assemble_params.default.bind(void 0,new Set([\"xsrf\",\"user_code\",\"confirm\",\"abort\"])),import_reject_dupes.default.bind(void 0,{}),__name(async function codeVerificationCSRF(ctx,next){if(!ctx.oidc.session.state){throw new import_errors.InvalidRequest(\"could not find device form details\")}if(ctx.oidc.session.state.secret!==ctx.oidc.params.xsrf){throw new import_errors.InvalidRequest(\"xsrf token invalid\")}await next()},\"codeVerificationCSRF\"),__name(async function loadDeviceCodeByUserInput(ctx,next){const{userCodeConfirmSource,mask}=(0,import_weak_cache.default)(ctx.oidc.provider).configuration(\"features.deviceFlow\");const{user_code:userCode,confirm,abort}=ctx.oidc.params;if(!userCode){throw new import_re_render_errors.NoCodeError}const normalized=(0,import_user_codes.normalize)(userCode);const code=await ctx.oidc.provider.DeviceCode.findByUserCode(normalized,{ignoreExpiration:true});if(!code){throw new import_re_render_errors.NotFoundError(userCode)}if(code.isExpired){throw new import_re_render_errors.ExpiredError(userCode)}if(code.error||code.accountId||code.inFlight){throw new import_re_render_errors.AlreadyUsedError(userCode)}ctx.oidc.entity(\"DeviceCode\",code);if(abort){Object.assign(code,{error:\"access_denied\",errorDescription:\"End-User aborted interaction\"});await code.save();throw new import_re_render_errors.AbortedError}if(!confirm){const client=await ctx.oidc.provider.Client.find(code.clientId);if(!client){throw new import_errors.InvalidClient(\"client is invalid\",\"client not found\")}ctx.oidc.entity(\"Client\",client);const action=ctx.oidc.urlFor(\"code_verification\");await userCodeConfirmSource(ctx,formHtml.confirm(action,ctx.oidc.session.state.secret,userCode),client,code.deviceInfo,(0,import_user_codes.denormalize)(normalized,mask));return}code.inFlight=true;await code.save();await next()},\"loadDeviceCodeByUserInput\"),__name(function cleanup(ctx,next){ctx.oidc.session.state=void 0;return next()},\"cleanup\")];0&&(module.exports={get,post});\n})()\n","warnings":[],"map":{"version":3,"mappings":";i/BAAA,mKAAwB,gCACxB,SAAsB,8BAEtB,mBAA8B,yCAC9B,2BAA6B,iDAC7B,4BAAuB,kDACvB,wBAAwB,8CACxB,sBAAqB,6CACrB,kBAA8C,gCAC9C,aAA0B,iDAC1B,qBAAqB,mDACrB,sBAAuC,oCACvC,4BAEO,0CAEP,MAAM,UAAY,wBAAAA,QAAW,KAAK,OAAW,mCAAmC,EAChF,MAAM,WAAa,KAAK,UAAU,OAAO,UAAU,EAE5C,MAAM,IAAM,CACjB,eAAAC,QACA,uBAAAC,QAAiB,KAAK,OAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,EACvD,sBAAe,uBAAuB,IAAK,KAAM,CAC/C,KAAM,CACJ,SAAU,CAAE,WAAY,CAAE,QAAS,mBAAoB,CAAE,CAC3D,KAAI,kBAAAC,SAAS,IAAI,KAAK,QAAQ,EAAE,cAAc,EAG9C,IAAI,OAAS,OAAO,YAAY,EAAE,EAClC,MAAM,WAAW,MAAM,EACvB,OAAS,OAAO,SAAS,KAAK,EAC9B,IAAI,KAAK,QAAQ,MAAQ,CAAE,MAAO,EAElC,MAAM,OAAS,IAAI,KAAK,OAAO,mBAAmB,EAClD,GAAI,IAAI,KAAK,OAA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K,OAAO,aAAc,IAAI,EAElC,GAAI,MAAO,CACT,OAAO,OAAO,KAAM,CAClB,MAAO,gBACP,iBAAkB,8BACpB,CAAC,EAED,MAAM,KAAK,KAAK,EAChB,MAAM,IAAI,oCACZ,CAEA,GAAI,CAAC,QAAS,CACZ,MAAM,OAAS,MAAM,IAAI,KAAK,SAAS,OAAO,KAAK,KAAK,QAAQ,EAChE,GAAI,CAAC,OAAQ,CACX,MAAM,IAAI,4BAAc,oBAAqB,kBAAkB,CACjE,CACA,IAAI,KAAK,OAAO,SAAU,MAAM,EAEhC,MAAM,OAAS,IAAI,KAAK,OAAO,mBAAmB,EAClD,MAAM,sBACJ,IACA,SAAS,QAAQ,OAAQ,IAAI,KAAK,QAAQ,MAAM,OAAQ,QAAQ,EAChE,OACA,KAAK,cACL,+BAAY,WAAY,IAAI,CAC9B,EACA,MACF,CAEA,KAAK,SAAW,KAChB,MAAM,KAAK,KAAK,EAEhB,MAAM,KAAK,CACb,EA5DA,6BA8DA,gBAAS,QAAQ,IAAK,KAAM,CAC1B,IAAI,KAAK,QAAQ,MAAQ,OACzB,OAAO,KAAK,CACd,EAHA,UAIF","names":["bodyParser","sessionMiddleware","paramsMiddleware","instance","formPost","rejectDupes"],"ignoreList":[],"sources":["/home/etherpad/node_modules/.pnpm/oidc-provider@8.4.6/node_modules/oidc-provider/lib/actions/code_verification.js"],"sourcesContent":[null]}}

SAMX