instruction
stringlengths
24
27.2k
.Net has a feature called request validation which detects malicious inputs and blocks the request. By its nature, request validation is not a precise science. OWASP clearly recommend to only rely on request validation as defence-in-depth, not as a security boundary. I am updating a .net security training course, and I...
If I have an API that calls a backend webservice, is it possible to use HTTPS in the request and just HTTP in the response? I have such a question because I want to protect my OAuth token in my request. And then use WS-Security in my SOAP response. I am trying to find a way to get these two things work together as it s...
In the answer to my question: Two factor authentication for web application under PCI DSS gowenfawr stated: I have seen other methods used for 2FA than those you mention; IP whitelisting and adaptive authentication specifically. If you can convince your auditor it qualifies, you're all set. I am wondering if we can u...
I'm getting these user alerts: kernel: Intrusion -> IN=ppp0 OUT= MAC= SRC=115.230.125.147 DST=xx.xxx.xxx.xxx LEN=40 TOS=0x08 PREC=0x20 TTL=107 ID=256 PROTO=TCP SPT=64316 DPT=9064 WINDOW=15500 RES=0x00 SYN URGP=0 MARK=0x8000000 And kernel: Intrusion -> IN=ppp0 OUT= MAC= SRC=61.240.144.66 DST=xx.xxx.xxx.xxx LEN=40 TOS=0...
Can I safely assume that my RAM never can be accessed by another user on e.g. EC2 or Digital Ocean, if we suppose that I trust my provider and we don't consider possible bugs (such as Heartbleed) in my environment.
From Wikipedia: The Invisible Internet Project (I2P) is a computer network layer that allows applications to send messages to each other pseudonymously and securely. How can I detect/ block i2p traffic? Is it possible?
I am developing an application the architecture of which is arranged as follows: Session host <---> Central relay server <---> Session client All communication between the initiating session host and the subsequently connecting session client is relayed through the central server. The session host is to be secured suc...
I'm demonstrating an exploit for an old app. On Windows XP SP3 32bit (EN), the address of SetProcessDEPPolicy() is usually 0x7C8622A4. I have that version of Windows (in English as well) and I've successfully built a ROP chain that brings me to exactly that place in memory with my return address to my shellcode and a ...
So the premise of the question is to quantify the risk of wild card certificates versus regular certificates. From my research the greatest fundamental danger of wild card certificates is the possibility of compromising a weak system, getting the private keys then you can masquerade as any system. For this to work yo...
I can't seem to make any sense out of the following vulnerability in OpenSSL: DH client certificates accepted without verification [Server] (CVE-2015-0205) ============================================================================= Severity: Low An OpenSSL server will accept a DH certificate for client authenticati...
Our client would like for us to utilize ADFS 2012 R2 (aka 3.0) as the primary means for two security features in internal apps that we are building: The web app (there are two .NET & Angular) and an iOS app will use the OAUTH flow within ADFS Upon completion of the token flow, the JWT created by ADFS will be passed to...
Here are two passwords: 5678%^&*tyuiTYUI and 8^tyU75%*IuY6T&i Both have the same number of characters and in each the characters are identical, the only difference is that the first arranges those characters in a pattern that lends itself strongly to muscle memory by following a simple geometric pattern of keypresses...
Is it technically possible for a ssh server to steal files from a connected client?.
I read here that using ORM (like nHibernate) does not necessarily prevent SQL injection; for example, if you keep creating dynamic queries using your ORM framework you are still vulnerable. Fine, then what is the proper use of ORM to avoid all types of SQL injection? Should we use Parameterized Queries using our ORM f...
What would be a sensible approach to enhance the security and privacy of Firefox? I did not find a question about this and I feel that some guidelines for casual web users would be handy. Currently my browser is wearing: Adblock Plus to block pesky ads and social network buttons; HTTPS Everywhere to rewrite HTTP reque...
Some of our clients have started migrating to soft tokens instead of hardware ones for two-factor authentication to their network. We have apps like RSA SecurID and VIP Access on our smartphones. The problem we're starting to face is when new clients wants us to use the same app for a soft token already used by others....
I read an article describing how FBI agents snatched Ross Ulbricht's laptop while it was running to defeat full-disk encryption: Two plainclothes FBI agents, one male and one female, walked up behind Ulbricht and began arguing loudly. This staged lovers' tiff caught Ulbricht's attention long enough to distract him...
For AES based encryption on TCP/IP connections, I am guessing I have to do the following: Have the 2 parties share a common key, assuming I am doing AES-128 then a sequence of 16 bytes. Ideally the bits are securely random. Since we are running AES in CTR mode and the secret key is fixed, we must choose a securely ran...
During my current security audit test I've stumbled on something I can't possibly comprehend. The behavior exhibits signs of a buffer overflow in the target or in some intermidiate service (HTTP proxy/IDE/IPS/firewall), but I haven't been able to prove it yet, or somehow show it can be exploited. The service exhibits t...
I'm working on a web application which stores an authentication token in a cookie. The only CSRF-protection is referrer checking. I am considering improving this by moving the authentication token from cookies to a custom header, such as X-AuthToken. The application is a single page application created using JavaScript...
Consider an application using OpenSSL which has a bug. A packet capture of the full SSL session is available, as well as a core dump and debugging symbols for the application and libraries. A RSA private key is also available, but since a DHE cipher suite is in use, this cannot be used to decrypt the packet capture usi...
My Gmail setting has forever been set to send emails with just my Gmail address as the identifier, so it should not send out my account name (first or last name)... or so I thought! Recently I got a reply from someone (to whom I had contacted for the first time and never disclosed my name) and they wrote my first name ...
I currently write a client application which communicates with a PHP server. The application itself requires valid user credentials and get all of his information by doing POST requests to the PHP server. Is the first scenario safe or should I use SSL/TLS instead? 1st scenario (already implemented): Client application...
I'm trying to understand how does the LSARPC protocol work internally. In particular, I would like to know how secured is it. I couldn't find anything in the internet or in different books.
I found a one-time-password token and am unable to find out who it belongs to or where it has been used. It seems to be manufactured by a company called "ActivIdentity" (now "HID") and called the "keychain"-model. This is what it looks like: It requested a PIN (which I obviously not know), and after I tried several ra...
I have TLS connection between my server and client. I have no certificate, so the connection is susceptible to the Man-in-the-middle attack. I fear that attacker could intercept the password hash and use it to authenticate himself in my application. What is the best way to transmit password hash? To use server nonce o...
If I understood correctly, when using TLS with client authentication, the client certificate is transmitted to the server in plain text. The client certificate might include personal information, (like CN=name, or X509v3 Subject Alternative Name: email:name@server.com), which could be used to identify users connecting ...
Is the PKCS12 only as secure as the password protecting private keys ? Can I distribute the p12 file over an insecure channel ?
This question is somewhat acedemic in nature. While educating myself about the topic of Security via a Bearer Tokens for a back-end service that I am working on, and specifically about oAuth2, a few questions came up in my mind: If you were to outsource the identity provider / authorization service, you create a depe...
I have a question about the guidance in NIST 800-53. The PM-1 controls in NIST 800-53 call for an information security plan. Does this plan typically include all of the organizations information security policies (common controls)? Could the information security plan be considered the information security policy?
I'm making an auth service so I've been looking for some good Java/Groovy implementations of password + salt hashing. I've found this article on crackstation along with a code example and decided to make it mine. First thing I noticed is SHA1 and only 1000 iterations so I changed those to SHA256 and 90510(still have to...
I work for a large company and we are trying to judge the safety of some proprietary information that is being sent and received in a new application we are developing. After our initial testing we realized that we could easily do a MitM attack with Fiddler over WiFi in no time in all - leaving a bunch of information i...
I seem to have mis-understanding around client auth certs... If you have software that will use Client Auth certificates over SSL (such as those installed on a remote desktop via Windows Certificate manager), and this has proven to work with self-signed certs.... Where / how do you purchase a 'client auth cert' that wo...
This is the scenario I need to cover: A WebService that trusts on an IdP using Ws-Trust or any thing like that, receives a SAML token to authenticate the user, and we need to call some SQL Server or any kind of service that uses windows integrated auth and we need to forward the same identity of the calling user. Is th...
I need to implement Blakley's Secret Sharing Scheme. I have read below mentioned two research papers but still unable to understand how to implement it. 1. Safeguarding cryptographic keys 2. Two Matrices for Blakley’s Secret Sharing Scheme The following is the steps I have been able to understand. a. We chose positiv...
GHOST (CVE-2015-0235) just popped up. How can I quickly check if a system of mine is secure? Ideally with a one line shell command. According to the ZDNet article "you should then reboot the system". Ideally the test would also indicate this...
In the incident that a Marchand like Target or Home Depot, detects credit cards are breached, who they need to notify? Visa recommends informing the merchant bank, and/or Visa Incident Response Manager. Here, it says: There may be circumstances where notification to individual by a third party is more appropriate. For...
XKCD #936 uses a limited subset of the English language, only 2000 words. I just looked it up, and the English language has over a million words, a sizeable subset of those having special characters, numbers and punctuation. 1,000,000 is about 2^20, so 4 random words from that set would have 80 bits of entropy, maybe a...
GHOST (CVE-2015-0235) just popped up. GHOST bug: is there a simple way to test if my system is secure? deals with how to find out if your system is vulnerable. exim is mentioned specifically. Apparently OpenSSH is vulnerable but attacks can easily be prevented: In the mean time, you can implement immediate limited ...
I'm at that stage in application development where I'm forced to tinker with openssl and keytool again. I was surprised to find that I could list and export certs from a JKS key store without entering a password (although it printed a nifty little warning). So, I assume the sole purpose of the store password is to pr...
Q: How best to handle the issue of security warnings for a website using certificates from its own CA (ie, selfsigned)? I am some what torn on how to do this - I have a number of implementaiton thoughts. On the one hand, I can redirect any incoming http request to an https landing page that explains the need for a on...
I have friends andfamily that travel/live in foreign countries and compromised unsecure wireless networks and credit card scanners have always been a problem. I was recently asked a question about logging into personal bank accounts and other secure websites from these insecure locations. I was under the impression th...
As an example, I generated a 256 bit key pair. The private key (when saved to a file by puttygen) is: AAAAIGZcM73lV3Uk/psErZAYA0F+4xK78FtFoVi2fdypv92tAAAAEQDdOhyFJ6iV FSKDgjpj8+bRAAAAEQC2nAZD6DurGlj+DlPuB7tNAAAAEQCbHQFLFNR/URs4eu0o ZfPE This is 132 ascii characters. Assuming only 6 bits per character (if the characte...
As time goes on, won't computers be able to automatically test for vulnerabilities to the point where they will not be prevalent any more? What I'm essentially asking is will information security be a growing field forever or will it dwindle and die because computers could find all the vulnerabilities a program has an...
We have a web form that can be filled out with text fields and then they get emailed to us at work. Today we got some SQL commands it looks like in a bunch of emails. I just would like to have a bit general knowledge of what they were trying to do. I copied every command they sent through and have it below: All I am as...
I am relatively new to the area of cyber security but have a reasonable knowledge of several programming languages, assembly (x86 in particular) and scripting. In light of the recent Shellshock and GHOST vulnerabilities I thought it might be interesting to study older CVEs and security reports and find some old POC cod...
I would like to intercept an AJAX request using BURP. I have used BURP for web applications testing before. This, however, appears to be a weird case. I am not certain what am I missing here. The situation is: I have a web page, lets say: http://www.example.com/forum/register.php. Amongst the other fields on the REGI...
As per my knowledge the current implementation of SSL/TLS does not have the capability to identify the data is malicious or not during the transmission or before encrypt the data. If its have , kindly do let me know. If its not having the trend of identifying of it, then what's wrong on going it that to implement in su...
Suppose Alice isn't able to break into Bob's email account, but Alice can still do damage to Bob (a VIP) if she can stop him from being able to use his own email (or any other online) account to send and receive important emails. So what she does is she writes a computer script that guesses a random password (since mos...
In December everyone and his grandmother were talking about CVE-2014-9390 and we were all busy installing the git maintenance releases. Looking at my Xcode installment today - 41 days later - I still see a version 1.9.3 (Apple Git-50) from October lurking in /Applications/Xcode.app/Contents/Developer/usr/bin/. Apple di...
Suppose I need to convince someone to upgrade to the latest SDK version of Java? I have heard there are many security vulnerabilities with old versions of java but can't find anything that concretely convinces me that this is the case? What are some hard consequences or security exploits that exist for old versions of ...
Hi Folks, I was monitoring my SSH port with tcpdump and have had a lot of activity as expected. When I look at the traffic I get the above image. What does it mean? Thanks
Most Linux distros provide a page where you can check whether the latest package has any security vulnerabilities and what version they are fixed in. I understand that CentOS derives most of it's packages from RHEL, which has that kind of page here: https://access.redhat.com/security/cve/ Unfortunately though it look...
From theoretical point of view, grsecurity kernel patch looks like a great hardening tool. Most importantly, PaX seems like a good idea. Do these theoretical advantages have indeed practical effect in preventing malware attack/exploits/rootkits ? There were several critical security problems recently (Shellshock, Heart...
Regarding the storing of Root CA certificates on an Embedded device Setup Explaination: 1. An embedded device which is a CLIENT on the network 2. There is a SERVER which connects to the CLIENT on SSL/TLS Also we can access the server from any web browser. We have extracted the the following certificates from the web b...
I need to implement fingerprint scanning for all the users in a secure web app. Do fingerprint reader support chrome or firefox? From my google search they all seems to only be supported by IE. All the users use chrome or firefox... Will I be better off make the users use the integrated password manager? Or do I need t...
In SSO software (Oracle E-SSO …), I heard about (primary) key encrypting user’s credentials, but I can’t read anything about how this key is managed ? When using smartcard, I can understand that this key is encrypted/decrypted using another key pair on the card, but when smartcard is not part of the scheme, how does i...
I don't understand the benefit of port security (limiting the amount of MACs that can be connected to a single port of the router), what is the problem that motivates using this?
I would like to know if the activity of a webcam (date and hour when it was on, etc.) is stored somewhere in the operating system. Webcam to which I refer can be integrated or USB camera and the OS I'm interested are Windows and Linux. Thanks!
Let's say I want to help the Tor network - that relies on volunteers to donate bandwidth - but I am not familiar with Linux nor am I hacker of any kind. Is there a product like Tor node in a a box that I could simply buy and plug to my router? Or is such concept a bad idea because adversaries could sell somehow malicio...
Although the vulnerability targets Linux, I have read that it is really a glibc vulnerability, and some sites suggest that one should install a fix on any platform. I know that there are a lot of packages out there that let you install glibc software on a Mac (such as homebrew, port, etc.) but I am not sure if a stock...
I have a backup of my important data in the cloud with a given size of several gigs. To prevent snooping the data is inside a TrueCrypt container and everything which will be transmitted is the TrueCrypt container (no hidden volume). Because uploading several gigs with even a fast Internet connection is slow, I have sp...
The overall system setup is as explained SERVER which connects with the client(Embedded device) on SSL/TLS Embedded Device which acts a CLIENT and communicates with the server The Server can also be accessed using web browsers (mozilla, chrome etc). Through the web browser we downloaded/extracted the root CA certific...
Why is my hard drive being filled up when I am not installing anything? How would I find out the cause, e.g. is it malware, a hacker, or potentially something else? Every few days I come home to find I have lost a few gigs off my hard drive storage space, but cannot find what has been saved/installed to my hard drive....
In light of the recent public hacks on public systems, is there any culpability for the owner of a compromised system? Two examples: The owner is a large public company that leaks sensitive information through a malicious hack (for arguments sake, assume it came from the outside). Your personal computer unknowingly pa...
Let's assume that we have 2 open tabs in a browser containing page A (A.html, A.js) into the first tab and page B (B.html, B.js) into the second tab and that page A and B have the same origin (scheme, domain, port). Can A.js call a function from B.js? Can A.js modify the DOM of page B.html?
I was just wondering why some pages refuse to load completely while surfing with no-script Plug-in when I don’t allow specific Java scripts. I was wondering if there is some way to hold the tracker scripts blocked without resulting in broken web pages. So I tried some other "don't track" plug-ins and tried to find some...
Here is a tricky one: Can you securely delete a file from a VM? I'm sure the answer is dependent on a million different variables, and I'm sure the answer is something like "not really" but I want to hear what the experts think and why. If secure delete is not possible via conventional methods like shred, is it possib...
How can I manage my Cisco ASA device without the management cable? I have not set it up at all, but I have physical access to it.
I'm considering running a Tor (non-exit) relay on my personal Ubuntu 14.04 computer at home (which also has my personal data on it). I wanted to know if I should have any concerns about the security of my computer, data and home network? Could the security of my machine and my home network be compromised by using a van...
I was reading a paper and saw this piece of code has an information leakage vulnerability. It was saying the following code will Leak memory layout information to the attackers Could somebody please explain me how this leaks information? struct userInfo{ char username[16]; void* (*printName)(char*); } user; ......
How can I protect php execution in specific upload directory? Mostly, people put .htaccess in upload folder to protect php execution. But someone says it can be replaced by attackers. So how can I control it from the root .htaccess ? I tried to put the below codes in root .htaccess but it shows "500 internal sever erro...
When receiving emails, I sometimes see the following: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I found an integer overflow in PHP, in the conversation of dates to "Julian Day Count" function. The commit, with a PoC can be found here: https://github.com/MegaManSec/php-src/commit/a538d2f5605798422f2746636 ecdc300f...
Maybe I'm asking absolutely dumb question, but I couldn't find the answer yet. I know when I'm sending or getting a data in a browser over https, both server and client (browser) checks each other certificates. If everything is ok the data transfer starts. Now I wonder how to handle all this stuff in my code? I'm using...
I'm talking about CVE-2015-0235. I figured there's no Metasploit package for this kind of check yet and I also understood that there's a special VM by Qualys for this test. Do you guys know of any other possibility of testing this vulnerability from outside the network? Alternatively, can anyone tell me if there's any ...
I've heard people say again and again that you shouldn't implement your own security algorithm, and I'd like to ask you if I'm breaking this rule. I'm creating a traditional client-server application with a twist: I want to encrypt all data on the client so that even an attacker who gains complete control over my serve...
I would like to obtain the SHA1/MD5 fingerprint of an X.509 certificate in order to compare it with the one presented by a server before connecting. However, I currently don't have access to the certificate itself, the only info I have is the output of the openssl x509 -text -noout -in cert.crt command that I was provi...
I want to write login scripts for clients websites to make them more secure. I want to know what best practices I can implement into this. There are password protected control panels in abundance, but very few seem to implement best practices in terms of code writing, speed and security. I will be using PHP and a MySQL...
A website (www.blue*****art.com) is trying to attack my server using the Shellshock vulnerability. After doing an Nmap scan on the attacking IP address, I found many open ports. It looks like the website is running Exim, which is vulnerable to GHOST. The website in question has not been maintained for the past three ye...
When building an n-tier/layered web application where each tier is physically separated from the others, is it important for a different communication stack to be used by the backend tier(s)—which are not exposed to the Internet—than the web tier that is? Being security conscious in building a web application, I am bui...
After the installation of RealVNC on a Windows computer, the default login username and password via VNC is the same as the system username and password. Can anyone tell me how RealVNC can access such information? Isn't such information supposed to be encrypted and unaccessible except Windows?
For enhanced security, we can use security questions and use them as a means for users to reset forgotten passwords or as an additional means for authenticating. When would we be the right time to ask the user select the questions and set the answers? 1- at the time a new user creates a new account with the web applic...
I am trying work on an XSS scenario. Would appreciate if anyone can help. URL: www.example.com/mydata "mydata" is landing in html as follows: 200 OK ... Content-Type: text/html; charset=utf-8 ... ... <select> <option value="mydata"> Anything</option> </select> ...... Since the "mydata" is in URL I cannot use a payload...
A long time ago I was reading about Renaissance-era ciphers and I remembered this quote: David Kahn, author of The Codebreakers, quotes Giovanni Battista Porta who published, in 1563, a famous cryptographic book, De Furtivis Literarum Notis: "He urged the use of synonyms in plaintexts, noting that 'It will also make f...
I need a malware expert here. I am being targeted by advanced hackers over the 4.5 years. So this is my situation: 1) My new phone: I just bought a new phone, with SIM card and mobile internet plan of 2GB per month. I don't switch on the mobile data all the time (only mobile phone signal is on all the time), even if I ...
I need to test a parser of PEM formatted certificates. Thus, I need to generate many variations including variations that are invalid for various reasons. Obviously I can use openssl or a library like Bouncy Castle to create valid certificates, but what about forcing errors? Can anyone point me to tools that can help? ...
RFID credit cards are designed for short-range operation (1 centimeter), and radio fields drop off with the square of the distance. Even as close as 1 meter you're talking about a field 10.000 times weaker. That also means a reader can protect the card being read by adding a low-power jamming signal at 10 centimeters f...
I'm working with a software company that has developed an add-on to Outlook Web Access. They are aggregating data and providing a consolidated view of a particular topic / category. I have experience with data center security audits for Saas companies with web GUIs. I was wondering if there are other areas of concern r...
I am working with this PHP encryption class using MCRYPT_RIJNDAEL_256 and MCRYPT_MODE_CBC with a fixed 32-byte (64 character) HMAC key, as my basis. The class is a result of previous discussions and remarks made on this blog page. and seems like a solid implementation as such. However there are a few aspects discussed ...
If someone have to transfer X.509 certificates in a single bundle, usually, it is recommended to pack them into PKCS#7. And content of PKCS#7 can be signed. OpenSSL allows to pack certificates into PKCS#7 in the following way: openssl crl2pkcs7 -nocrl -certfile domain.crt -certfile ca-chain.crt -out domain.p7b As I u...
Mark pointed out that only one chip type is vulnerable to BAD USB, id like to check if mine are, am using only Kingston flash drives here so can you tell me if they are, or if there exists a list somewhere i could check this? thank you.
Is it possible to setup my web server such that only certain sources can access and the public from internet has no access? i am thinking that we could just not publish our web server URL/IP to our upstream public DNS. And we give the static IP of our web server to the authorized sources to access. Of then, we will hav...
There is a many-year-old 1024 DSA key in the public keyservers under my name. There is a 2048 ELG-E subkey for it. I didn't create these keys, they were created for me by a former employer without my consent. I don't have the private key and it apparently has no expiry date. (Just brilliant.) I know there is no way to ...
I am building a web application where the front-end is a single-page-app and the back-end serves it through a RESTful API. I want to make sure I implement user authentication with the best security practices. I am planning a system that will perform the following steps to ensure authentication security: Signing up (or ...
I want to encrypt serialised customer details and store in a database to protect against attacks where the attacker has access to the raw database records. The records then need to be accessible by multiple logged-in users, but do not need to be indexed nor searched. The naive approach would be to use a system-wide key...
Recently, I've seen periodic floods of traffic to my web servers with various Host headers that do not belong to us. The traffic appears to come primarily from China and a decent number seem to think we're a BitTorrent tracker. They come from a wide variety of IPs and User Agents. Example BitTorrent tracker request (an...
Here, suppose that we were able to observe the ciphertext that we know had been encrypted in CBC mode, then how knowing of c2 and c5 ciphertext blocks would leak information ? My professor asked us in the class and told us to think about it and gave us hint what would happen if we knew one of the plaintext blocks m2?
Motivation: I've been interested in how various agencies hide data, either through incompetence or willful intent, that is required to be "open". Specifically I've seen oil companies use images to display their transparency reports and financial companies display data via massive time-delayed queries to prevent scrapin...
I'm developing a OAUTH service (I'm thinking so. It might not be exactly the same.) to open one of our back end API to a Merchants. basically users can purchase goods from Merchant's E-Commerce website and can use our payment gateway to do the payment. we have registration system for merchants and users and we are issu...
I have been learning about security testing on Android apps, and to intercept traffic I was using Burp Suite. I know it works perfectly for HTTP/HTTPS traffic, but most of the messenger apps are using the XMPP protocol for their communication. I did a little research on how XMPP works, the relationship with Jabber and...