SecurityRiskAdvisors / VECTR

VECTR is a tool that facilitates tracking of your red and blue team testing activities to measure detection and prevention capabilities across different attack scenarios
1.37k stars 162 forks source link

Configuration Error - system time #241

Closed kimberleyhallifax closed 1 year ago

kimberleyhallifax commented 1 year ago

Describe the bug

I'm running vectr on AWS Elastic Kubernetes Service in the eu-west-1 zone (UTC). When I attempt to login, this is the response I get:

Screen Shot 2023-07-24 at 11 52 27 am

I figured that all I needed to do was just to change the linux system times in each container to my time zone (AWST), so I did that, but I still get the same error with vectr in UTC time. Here's the evidence for my containers having AWST time:

Screen Shot 2023-07-24 at 11 58 22 am

The commands I ran to change to AWST are:

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Australia/Perth /etc/localtime

To Reproduce

Not possible unless you sign up to AWS.

Expected behavior

The usual login page.

Desktop:

My browser time is AWST.

I'm just wondering if you guys know where this UTC time is still persisting and where I can go to update it?

SRAPSpencer commented 1 year ago

VECTR uses Epoch time,

https://www.epoch101.com/

Time zones aren't relevant, only the absolute time. Your browser machine is likely +/-30 seconds or more from the server time.

kimberleyhallifax commented 1 year ago

https://www.epoch101.com/

Ah, thank you @SRAPSpencer. I can login through a different device :)

nonsleepr commented 1 year ago

VECTR uses Epoch time,

https://www.epoch101.com/

Time zones aren't relevant, only the absolute time. Your browser machine is likely +/-30 seconds or more from the server time.

That's misleading, had the same issue but epoch101 shows my system time, not the actual time. https://time.gov/ is a better way to check.