October 22, 2024
Chicago 12, Melborne City, USA

security

Topics relating to application security and attacks against software. Please don’t use this tag alone, that results in ambiguity. If your question is not about

security

exploit the vulnerability of a program to get code (in C)

#include <stdio.h> #include <string.h> #include <stdlib.h> char secret_message[8]; #define MAX_USERS 4 #define NAME_SIZE 8 struct Name { char name[NAME_SIZE]; }; struct NameList { unsigned long int user_num; struct Name users[MAX_USERS]; }; void view_user(char* data) { // this function's source code is irrelevant to the task requirements // it does pretty output of the data in

Read More
security

How can I securely handle file uploads in Express and store the file metadata in MongoDB?

The details of my problem revolve around securely handling file uploads in an Express application. Specifically: Security Concerns: I want to ensure that my current approach to file uploads is secure, and I’m not exposing the application to potential vulnerabilities like malicious file uploads (e.g., executable files disguised as images). Validation and Sanitization: I’m unsure

Read More
security

Oauth2. How does server understand 'state' is belonging to a valid public client?

I am trying to understand how exactly state benefits Oauth flow by preventing CSRF. I just don’t understand what the client server is comparing the state in the URL to. I have seen such an example: Alice, good.com – good. Mallory, bad.com – bad. google.com – auth server. Alice is already authorized in good.com via

Read More
security

The key “_username” must be a string, “NULL” given

I’m receiving ‘The key "_username" must be a string, "NULL" given’ after submitting login form this is my jsx: fetch('/signin', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: JSON.stringify({ _username: "test@example.com", // Test email _password: "your_password" // Test password }) }) .then((res) => res.json()) and my controller: #[Route('/signin', name: 'app_login')] public function login(AuthenticationUtils $authenticationUtils):

Read More
security

OS Security update on a VM where WSO2 API Manager is installed

Our client wants to update the OS on both Test and production VMS, and add the below security packages The question here is if these packages could somehow affect the stable operation of the WSO2 APIM server The current installation has the following info : WSO2 Api Manager Version : Version 4.2.0 JVM Version :

Read More
security

XMLHttpRequest cannot load XXX No 'Access-Control-Allow-Origin' header

Currently, my CORS setup only allows access from specified domains depending on the environment. However, I can still perform operations from Postman, curl, etc. What’s going wrong? const allowedOrigins = [ 'https://xxxx.app', 'https://www.xxxx.app', 'https://dev.xxxx.app', 'https://www.dev.xxxx.app' ].map(origin => origin.replace(/\/$/, '')); const corsOptions = { origin: function (origin, callback) { const normalizedOrigin = origin ? origin.replace(/\/$/, '')

Read More
security

How to create and apply GPO's to individual users or groups on local machine

How can GPO’s be created on a non-domain machine? How can they be applied to individual users or groups. Is there a Group Policy Management Console? (I find only GPEDIT.MSC) I am talking about Windows 10 Pro 22H2 and Windows 11 You need to sign in to view this answers

Read More
security

How to access installed packages from an Android app?

Can a non-system installed app access the /data/app folders where installed package files are stored? I know they are accessible using a file explorer app but how would this be implemented in an Android app? I’m not sure how to test this outside of writing a specific app You need to sign in to view

Read More
security

CSRF Token enabled in keycloak by default?

We ran DAST and VAPT on keycloak, the report says CSRF not implemented. we don’t find CSRF token in headers and in request. the question is if this enabled where we can find CSRF Token, if not how to enabled it. You need to sign in to view this answers

Read More
security

How to create STIG vulnerabilities files?

I am trying to create a new repo for Tomcat 9 STIG for work. I found a public repo that is that same and trying to mirror it: https://github.com/mitre/apache-tomcat-9.x-stig-baseline/tree/main The part I am having trouble is, I am not sure how to convert the STIG I downloaded from the DoD website (https://public.cyber.mil/stigs/downloads/) into the individual

Read More