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

sanitize-html not acknowledging allowedSchemes options

var sanitizeHtml = require("sanitize-html"); const ALLOWED_SCHEMES = ['http', 'https']; const htmlStr="\""><meta http-equiv="refresh" content="0;url=file:///etc/passwd" />'; const cleanedHTML = sanitizeHtml(htmlStr, { allowedAttributes: false, allowedTags: false, allowVulnerableTags: true, allowedSchemes: ALLOWED_SCHEMES, allowProtocolRelative: false, disallowedTagsMode: 'completelyDiscard', allowedSchemesByTag: { img: [...ALLOWED_SCHEMES, 'data'] }, }); console.log(cleanedHTML); Actual behavior '"&gt;<meta http-equiv="refresh" content="0;url=file:///etc/passwd" /> Expected behavior '"&gt;<meta http-equiv="refresh" content="0" /> **Description of the issue:

Read More
security

Dropping root privileges in NodeJS doesn't seem to have an effect

I want to have root privileges on startup and drop them later. Background is a server written with NodeJS on Ubuntu 24.04 that needs to read in a private key. I followed these instructions using process.setgid() and process.setuid() and after that elevating privileges back doesn’t work. But I saw that process.env wasn’t updated. It still

Read More
security

How to Bypass Web Restrictions to Discover Flags in CTF Challenges?

So this is the URL of the website (https://06bbe5b3978ba303a3f4fa5e605b8fe1-infosec-blog.web.cityinthe.cloud/) and I kinda tried everything without external tools but cannot find the flag. There’s is a hint saying that "The author lays out some very interesting points about how to roll the crypto, people often reuse code, code that code snippet include important information?" enter image

Read More
security

Google App Engine Gives Blanket 403 Errors After Exceeding 1000 Firewall Rules

Recently, my Google App Engine (GAE) platform started returning 403 Forbidden errors to all incoming requests even if the IP is allowed access. After investigating, I discovered that I had 1002 active firewall rules in place. Interestingly, as soon as I manually deleted some rules and the count dropped below 1000 rules, the platform resumed

Read More
security

Windows Property Pages: Domain Path Not Shown on Security Tab

When I want to set security permissions on a file or some other object, I need to open its property dialog end select the security tab. In order to add a domain user to set her permissions on the object, I can only select users or groups from the machine but not from the domain

Read More
security

Spring Security Login System

I am building login system using spring security but everytime I login and try to access anonther page, it just redirects me to the Login.html. private UsernamePasswordAuthenticationToken authentication; snippet of my post mapping /logged method: authentication = new UsernamePasswordAuthenticationToken(accountModel, null); SecurityContextHolder.getContext().setAuthentication(authentication); and this is SecurityConfiguration class: import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import

Read More
security

Where is the signature of a signed APK stored?

I do research on methods to modify .apk in order to add some protection. I understand that all protection code can be removed, but at least it will temporarily protect against auto-patches, for example, patches for the ApkEditor or MT Manager apps. One of the cases to modify is the PmsHookApplication class (example of detection),

Read More