instruction
stringlengths
24
27.2k
I've heard the terms East-West and North-South mentioned in respect to network traffic or network design. What does it refer to and in what scenarios is it relevant?
Say I have network A and network B. I wish to SSH from network A to network B. Hence, I would set a route from network A to B, and in the stateful firewall, I will allow a rule for Network A to B at port 22. In this case, do I still need to create a rule to allow Network B to Network A on all ports, since there is TC...
My computer is connected to a switch. Numerous other network devices are also connected to the (local) switch. Is there a simple way of determining whether the connection between my desktop and another network device (i.e. a printer, another desktop, etc) is encrypted? Without the need for packet sniffers, etc? I in...
In RFC5652, Cryptographic Message Syntax (CMS), section 5.3. SignerInfo Type, there's a digestAlgorithm field that has values like id-sha256, id-sha1, etc. In that same RFC, section 5.1. SignedData Type there's a digestAlgorithms field that in my testing generally has as many entries in it as there are SignerInfo's. My...
I recently moved to a new apartment complex, had my DIY Time Warner box ready to go and hooked up my all my hardware. Everything booted fine but no connection to TW. I tested all the jacks in the apartment and came to the conclusion they were dead. I grabbed my tool bag and walked outside the unit and found the Utilit...
I was reading this article (about ReDos). The examples they give are pretty simple but I'm sure such regex can hide everywhere. If there is any way to test if a regex is evil without spending a lot of time trying to find the NFA used by the regex engine, I would be very happy to know it. Thank you very much.
I changed my computer user name and password. When I logged in it was still OK. But when I restarted again it did not accept my password, it says wrong password or incorrect. Then the IT department who checks it said I messed up by renaming my user name and password. Is changing the admin password wrong? Then he uninst...
Assume I am managing a firewall between DNS server and clients. Is there any way to force clients use TCP rather than UDP, so we can prevent DNS spoof types of DDoS attacks?
I read cipher suite description of mod_ssl, and understood the meaning of alias and keywords like ! + etc. But I am unable to understand how to read ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW completely specially when it comes to priority using +. When I try to use openssl to undestand how ALL:!ADH:!EXPORT:!SSL...
I have been thinking about how to generate random passphrases from a public dictionary of words (similar to XKCD/Diceware passphrases). One thing in particular I was thinking about is that the length of such a passphrase will leak a lot of information about the phrase (assuming the dictionary contains words of varying...
Which one is better, using PIN or password ? I want my app using PIN number to user login and register. Does not matter if I use PIN number only for user login and registration in my web application ? Any opinion ?
Well, it all started when I wanted to take the sim card out of my tablet and I was about to shut it down so that I could take the simcard out. But then a thought raced through my mind, "What if I take out the simcard before I turn off the tablet and go to google and see whether I can still search for something?" So I q...
Simple question for y'all as i'm having some trouble identifying the hash type of this from a http digest file that I have setup for rutorrent on a apache2 server. Here's an example of what it looks like: user:rutorrent:*MD5-HASH* The first two are in plain text while the password is entirely hashed...and not knowing ...
I am confusing regarding SHA-1 deprecation. We use self-signed certificates signed with SHA1 and the expiration is after 1 January 2017. According to this blog: http://blogs.technet.com/b/pki/archive/2013/11/12/sha1-deprecation-policy.aspx CAs must stop issuing new SHA1 by 1 January 2016. … For SSL certificates, W...
Even with all the privacy, sync, and p2p settings off, using an offline account, I don't feel safe using Windows 10 for a business. I would like to restrict its ability to communicate to Microsoft (or vice versa) as much as I can. Is there a list, or any way info out there, about what IP's Windows 10 is using to, for l...
New to PT and would like to test recon skills. First, is this considered passive or active recon? Second, would I be jumping into a legal gray area if I used a tool like this on a buiness' website? I'd like to practice but am having trouble determining this.
I'm implementing certificate expiry validation for a client. I'm not sure about the following. Is there a standard/popular implementation regarding the order of validation- Check if the certificate is in the trust-store first and only then the expiry? In this case I will present the user with an "expired certifi...
Can a MITM attack on popular sites such as Facebook.com Google.com be done by intercepting the DNS requests? Will the user notice something? For instance: Loading https://fb.com The client requests IP (not through SSL by default) and the client gets the IP from the attacker's server. Will the attacker then by able ...
I've posted a related question on Stack Overflow, but I have a more general question about HMAC and SHA256. Let's say I want to generate an HMAC hash for a blank key and a blank message. The Wikipedia page shows "b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad" as the example hash. However, if I take 6...
I was thinking today about whether this piece of code is secure: String token = <<**token received from REST API call**>> String encryptedToken = Base64.encodeToString(token.getBytes(), Base64.DEFAULT)) You are saving the token in memory and the actual token might still reside there until garbage collection. Would th...
I need a script to look for logs which are in separate files for each user so that I can get all the log data. Right now I have something like this: public function getLog($name) { if (is_file($this->getFull($name)) && $this->isValidFile($name)) { // do stuff } // return false } public function...
I am trying to write a software that will inject keys generated inside an HSM into a POS device, in the same way as described here I'm using the Safenet emulator(software-mode) + the wrap/unwrap functionality to achieve this but I've not been able to decrypt/unwrap the data I'm getting out of the HSM through the Key Ma...
We all know how banks identify themselves to users. No, not through TLS certificates. The users pay no attention to those. No, I'm talking about branding-- all those fancy logos and stock photos that give you the impression it's your actual banking site. The trouble is that anyone can copy those images for themselves a...
I accidently clicked on an advertisement, and opened it with chrome. It was one of those things where you can subscribe to an App Store for £4.50 a week for apps which are usually free anyway. This is the app screen (left) with app permissions (right):                                           App screen shows the last...
I'm looking at the security of both iOS and Android from a Touch-jacking security perspective. In other words, I expect that an application can be in a secure state to ensure that no overlays, screen capture, or other way of leaking screen data to an unauthorized app. For example, I want to ensure that the PIN entry o...
We setup a ISG-1000 firewall about a month ago with the goal of blocking specific URLs. Please see image file below in which there are 70EA PCs. Even though we think we blocked specific URLs, some users detour the IP using the zenmate program which is some kind of Detour Program! Are there firewall settings that would ...
I recently research the SSO solution, and I went into the OpenID connect framework; but after several days of research, this makes me confused that the 'OpenID Connect' protocol does not define the flow for how to login into a Authroization Server and The server how to identify a user will be the user who is coming in...
There was recently a massive personal data leak, and the data seems to be from Ashley Madison - a site providing dating services to married men. The site takes any email and does not verify them while registration. What could be some ways to genuinely verify that the user registered was a continuous paid member contra...
I would like to do some kind of estimation for time taken to test a website/ web application for security vulnerabilities. I will be testing websites against OWASP Top 10 Based on my understanding, Number of static/dynamic URLs, number of parameters to test (URL, Body) in a website , other insertion points like cookies...
I bought a USB thumb drive on ebay. It seems like much too good of a deal ($20 for a 512GB drive, as of 2015-08-10) which makes me suspicious about malware on the drive. How can I test it to see if it has malware, whilst also not infecting any of my PCs with malware? I was thinking I could unplug all hard drives, boot ...
With the recent surge in compromised user information on web services, I have the following solution in place for myself: Registered a domain with an obscure domain name. (actually a bunch) One email account with an obscure name This email account is the catch-all for the domain Now I register for online accounts with...
Since the Stagefright exploit is very common on many devices I wanted to ask if there is any way to check if someone has used this exploit on a given device. Like check the processes for unknown entries, check the battery statistics for strange apps, check the data transfer for unknown apps or something similar. What c...
For example https://web.wechat.com By scanning the QR code from my mobile, it automatically logs in with my wechat account. Here, can QR web sever or QR devices steal the mobile data?
I am aware that HTTP GET requests are sent to web-server using query-string name/value pair in URL. This means that one is able to pass custom data to web-server. For example http://some_site.com.br/some-page.asp?name=custom_data. Are there any other HTTP request types which are sent like this in URL? As far as I know...
I need to frequently communicate with a server in the manner do stuff related to x or send me info of x My thoughts are to directly put the task I want to be executed into the package I want to send, add some SALT and encrypt it using a monthly changing public gpg key. Since every user will have a public and private ke...
I'm creating a small web script that mostly redirects the browser but has some error conditions when input parameters cannot be validated. I'd like to display error messages like parameter XXX had invalid value YYY but that would open the script to XSS attacks if the parameter value is not properly escaped before outpu...
Recently a design flaw in some Intel X86 processors was revealed at Blackhat. The flaw enables malicious code to gain access to SMM. The flaw can be exploited by an attacker with administrator privileges. Can the flaw be exploited from within a virtual machine in hypervisors like VirtualBox, Qemu ... etc. if VT-x is en...
How many of you have actually updated their mouse, keyboard or USB stick firmware? How many vendor actually propose updates for such devices? However these devices firmware often offer a proprietary update feature. Why is it so? What is the expected use of such feature? Is it some kind of debugging facility left by the...
I looked at other Stack Exchange posts explaining why self-signed certificates are not as secure as CA-issued certificates, and most of these pages say the same thing: If it's self-signed, and the 1st client-server handshake is intercepted, the man-in-the-middle could receive the encrypted data from the server, decrypt...
I have read a bit about configuring shibboleth, and recommendations for SAML at internet2 I get the point that a certificate does not have to be signed when used for SAML, because actually only the key is needed. However, I keep seeing people recommending not to use your web servers TLS certificate for signing your S...
I have read from multiple sources that it might be better to have a password composed of several random words since this is easier to remember than a random sequence of characters. For example this article from Thomas Baekdal. I even see this xkcd comic quite often. Now, I read this article about a new tool called bra...
We have a web app and we send the back URL through post to various pages to enable users come back to the parent. The double quotes are translated to &quot; to avoid XSS and then translated back. The final tag is like this - form name="back_url" action="server side script" method="post". These double quotes are creati...
I'm using the RSA BSAFE Crypto-J 6.2 JCE provider in Java as SSL/TLS server (in FIPS 140 Compliant Mode for SunJSSE). It seems like at least Chrome and Firefox cannot establish a connection if TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02b) is used. The error in Firefox when connecting to the server is: "sec_error_uns...
A friend of my mine who lives in Germany called my attention to a so called "E-Mail made in Germany" (EMiG). Since the country is well known for exporting high quality products, I decided to take a look at it. The three main points they list as main features are: Encrypted transmission (SSL) Data processing in German...
I would like to create a TDES key with size 128bits and 2KTDES key with 192bits for authentication in a Desfire smart card. Hence I have used the keytool to generate the jceks with the following command. When I run the same under the C:\Program Files (x86)\Java\jdk1.8.0_25\jre\bin folder I can see that the execution su...
I am using AWS and looking for any comments on best practices regarding permitting connections to my DB from specific IPs on the Internet. I could give the DB a public IP and just lock down the firewall to only allow connections from the specific IPs that need to connect. I could probably also use a bastion host in the...
A penetration testing is ordered on one of the web sites. I have implemented OWASP CSRF Guard on the web site. It uses custom headers for CSRF protection for AJAX. This got flagged with subject message. No explanation is given. I am not sure if the above statement is true. Why does it invalidate? Note: Please note tha...
My company often sends orders to brokers and banks to execute certain actions (like buying x stock or y fund). In order to reduce bureaucracy we are considering send a list of emails that are allowed to send orders. Is there big flaws in this procedure? Like, could someone pretend it is sending a email from someone els...
I'm looking at the OWASP Data Validation page trying to figure out what they mean with the "Best Method" for "business rule validation". I quote them here: Example - Scenario You are to populate a list with accounts provided by the back-end system The user will choose an account, choose a biller, and press next ... ...
<cross-domain-policy> <allow-access-from domain="*" secure="false"/> <site-control permitted-cross-domain-policies="master-only"/> </cross-domain-policy> I would like to ask two questions: Is this crossdomain.xml vulnerable (the file is placed on the root of the host e.g. www.example.com/crossdomain.xml)? How I can...
Firstly, I'm not sure if this is valid board to ask this question - maybe it should be asked on StackOverflow? Overview on use-case, what we trying to achieve: Two servers, on two different domains; Available only from inside (intranet) SharePoint 2013, on https://shp.mydomain.com; (Claims-based authentication) ASP.NE...
Does the act of requiring certain criteria for passwords make them easier to brute-force? It's always seemed to me that when websites limit the use of "insecure" passwords, it might make it easier for the passwords to be brute-forced because it removes the need for attackers to check any of those passwords. The most ba...
I am configuring a non-sticky load balanced cluster of HTTPS servers. To enable TLS session resumption when a previous client reconnects to a different server in the cluster I will be configuring shared session ticket keys across all servers in the cluster as per RFC 5077. In the RFC, section "5.5. Ticket Protection K...
Again and again hackers use SQL injection to get information from the backend database. Is it fair to say because a relational database by its nature has all the links within the data sets (e.g., 1-to-1, 1-to-* and so on), therefore it enables a user with any form of access to illegally access everything, either in the...
Diffie-Hellman and MIM attack: When variants of Diffie-Hellman algorithms like DHE, ECDHE etc. are used in SSL handshake for key exchange then can it become prone to man in middle (MIM) attack. Suppose, SSL handshake has started and now it is time of key exchange, so client computes its public key part of DH and sends ...
I can't identity my Linux Mint 17 machine on my home network. I use nmap -O -v 192.168.2.28 However, I get the following output (below). I am just learning nmap, so I don't know what all of the output means. I don't have firewall up on Mint (well, not during testing). I checked ifconfig and my router's assigned dynam...
I am working on a web application that would include some custom development and got a bit concerned about code theft. So the question I wanted to ask is whether it is - generally speaking - possible to steal PHP or ASP code from a running web server using the HTTP or HTTPS protocols? My understanding is that getting P...
I want to write a Proof-of-Concept to exploiting any heap-based vulnerability(e.g. heap overflow, use-after-free) where my ROP(return-to-programming, a kind of code-reuse attacks) payload is deployed on the heap. While such exploits is widespread on windows, counterparts on linux are rare. Could anyone give me any usef...
I was looking here, and I understand that reflected-DOM XSS(Client-side XSS) does not go through a server-side script but Reflected XSS (Server-side XSS) does, but neither hits/gets stored in the database. But I am confused on what one injection can do that the other can't. What are the dangers of XSS going through a ...
Assume I am a firewall between client and server. If the client sends a DNS query with UDP, I should response this query with set the truncated flag=1. As a result, the client will be forced to use TCP instead of UDP. Is it possible to generate such UDP responses and how?
I wonder how to manage/deploy a code signature certificate used by the JVM in a corporate context. Suppose you signed a Java applet (executed in browser by corporate users), how do you deal with the certificate, as it is needed by users to verify code signature ? We can embed it in the JVM, but we could also deploy it ...
Around a year ago I have asked a question about the weakest factor of authentication. I have had some good answers that convinced me as I always imagined the authentication process in my head as some employee in a high security facility trying to get access to his office by entering his pin or someone trying to login i...
In most, if not all, web forms for logging into a site, you have your forgot password link. When clicking the link, you get a new form (usually in a new page) either empty (!) or prefilled with the email address you put in the login form, where you have to click again to actually get the site to send the reset password...
If you install some kind of Linux distributions on your computer, is their a possibility that their owners may spy on you? For example, can Ubuntu, Kali or Arch linux send data to its owners on what you are doing? Speaking about Kali, I guess it would be interesting for NSA or any other corporation to know why do you ...
I recently received e-mails from two services: Paytm and Uber. They both seem like legitimate services. However I have no idea why I received these e-mails or why somebody would want to create an account with my e-mail. The first e-mail provided a link to remove my e-mail from the system. I was wary to put my e-mail in...
When I open cmd.exe and do nslookup on google.com I am getting a set of addresses that belong to my ISP. More than that, even when I try to run server 8.8.8.8 or server 8.8.4.4 and query for google.com I still get the same addresses. When I use some external web page to do the DNS resolve such as http://www.kloth.net/s...
Is it safe to only use username and password (and server certificate) for OpenVPN connection authentication? Are username or password ever transmitted in plaintext to the OpenVPN server? I found a (german) website which claims so: Original Text: Achtung: Dieser Schutz ist ohne Verschlüsselung sinnlos, da Username und ...
My aim is to DNSspoof. My network is using a wireless router with the address 192.168.1.1 and primary DNS is the same as the router address. I have enabled Kernel IP forward in Linux. DNS host file is spoofhosts.txt 173.252.74.22 google.co.in My victim machine is 192.168.1.224 I have done ARPspoof using #sudo arpspo...
In the recent years I've gotten more paranoid of spying and hacking, so I've encrypted most of my important files just in case. Tax information, some company confidential information, account logins, and even my family photos. While this does ease most of my concerns, the files are still accessible by anyone who comes ...
I've read the draft RFC in relation to TLS_FALLBACK_SCSV and understand that if both the client and server implement this feature and a client sends this as part of clienthello, the server must reject the connection, if it's version of TLS is higher that the version of the client. However, it's not clear to me what the...
During a recent review of changes to the Firefox profile (I'm version controlling it) there turned out to be a new property searchdefaulthash in search-metadata.json: "[global]":{ [...] "searchdefault":"Google", "searchdefaulthash":"fGiy1O53LgQtereW/4qUSlwFfagTNKGghURIbAFw8wY=", "searchdefaultexpir":144...
If I want to save a hash of a certain number of bits, but my hashing algorithm gives me more bits than I need, then what is the safest way to shorten it? Should I: Just remove the first or last few bits XOR the first or last few bits with the part I'm keeping Do something else Does it matter how I'm shortening it, o...
I recently got an email from my ISP saying that they'd detected traffic to a known Command & Control server from my home. Boo. I'm sure this probably means one of our computers has some awful virus so I'm about to begin that laborious process. Is there a list of all known C&C servers published somewhere that I can ju...
Today - I saw a question about passwords usage in cars. Have we developed anything besides passwords for IT? Is there are any other solution out there for my common-folk-direct-to-business-client-power-paying-user? Besides having to login with a password, is there are any alternatives to this? I saw this question here ...
I am using Kaspersky Antivirus and recently I've updated it to Kaspersky Total Security 16.0.0.614. When I checked my browsers I realized Kaspersky injects remote JavaScript into all my pages even secure ones. This version of KTS is keep injecting main.js every 2 millisecond on webpages, like this picture : I research...
I've seen a few posts on the internet saying most people store user passwords in OpenLDAP using one of OpenLDAP's many, built-in hashing functions. But OpenLDAP itself recommends handing off password hashing and decryption to a separate service Furthermore, RFC 4519 Section 2.41 states that passwords stored in an LDAP ...
We have a task open right now to implement UAC and matching event log tracking for our devs installing software on their machines. I've been asked whether storing/parsing these logs centrally is a requirement for PCI compliance. I am but an egg. I've flipped through the PCI-DSS 3.1 document, but found nothing definitiv...
In a system where I have reviews of products, to avoid fake reviews I have thought about doing the following: Limit one review for each account -> To bypass this measure, the user could create multiple accounts. Limit a browser fingerprint for each product. To bypass this measure, creating a new account will not work ...
There are various browser extensions for opting out of interest-based ads, e.g.: https://chrome.google.com/webstore/detail/iba-opt-out-by-google/gbiekjoijknlhijdjbaadobpkdhmoebb https://chrome.google.com/webstore/detail/protect-my-choices/hdgloanjhdcenjgiafkpbehddcnonlic It seems to me that the only thing it will do is...
What is the difference between EAP-TLS and AES 256 encryption? Can they be used together? Or are they separate protocols?
So, I understand why most commonly used password policies are used. N character minimum? No low hanging fruit left for brute force attacks. N character maximum? The database field can only be so long. No unicode? The underlying database doesn't support it. Include at least one letter, special character, number, and he...
I have run openssl speed and the output on my CPU for longest available DSA key size, which is 2048 bits: sign verify sign/s verify/s rsa 2048 bits 0.029185s 0.000799s 34.3 1252.3 dsa 2048 bits 0.007979s 0.009523s 125.3 105.0 To be honest, I was expecting ...
I'm having an issue with my syntax to brute force my own account on a server for testing and reporting purposes to protect the rest of the community at hand. hydra -l username -P /root/Desktop/Test.txt url.zz.za http-post-form "/portal/xlogin/:ed=^USER^&pw=^PASS^:F=Invalid" I have used "FireForce" plugin for Firefox w...
I have downloaded a couple of Virtual Machine images from http://modern.ie, in order to test different versions of Internet Explorer. When running these images, a complete Windows environment is started, with a default user account. The details for the user account are displayed in clear text on the Windows desktop bac...
By security principles, we are often taught to sanitize input fields for characters such as & or ' so that they cannot be used for SQL injections etc. However, now I have an issue: I really need to store a string input which would contain these characters. It is a business requirement. My code scanners would definitely...
Yesterday I heard some people talking about not allowing users to RDP into servers they shouldn't and such which got me thinking about my companies network and the security of it. Can someone point me in the right direction in regards to best practices for isolating and locking down machines? Do you create access contr...
In wanting to produce secure code, a common requirement is to not use outdated libraries and frameworks in code bases (for example the OWASP A9 requirement). I understand the reason to do this, but it does not seem like there is an easy way to determine whether or not all the different applications we have and support...
I am trying to consolidate a list of security tools for our data center servers. We are predominantly Linux shop (RHEL) with some Windows 2008/12 servers. The core business is Software as a Service, so it is not a classical corporate environment. Also, we are using NIST 800-53 standard and based on the requirements, im...
I'm using the RSA BSAFE Crypto-J 6.2 JCE provider in Java as SSL/TLS server (in FIPS 140 Compliant Mode for SunJSSE). when I use any elliptic curve based key exchange mechanism the handshake fails when using a browser (Firefox and Chrome) as client. In my specific case I use TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256. The...
openssl cms -in demo.p7m -inform DER -verify verifies the signature on a CMS / PKCS7 encoded message but if the cert that did the signing is self-signed I get a "self signed certificate" error. ie. it doesn't seem to actually verify the CMS / PKCS7 signed message. Any idea how I can verify a CMS / PKCS7 signed message ...
From my understanding this is how SIM authentication works: When the mobile device starts up it obtains IMSI from the SIM card and send it to the operator network Operator network finds the Ki(128 bit symmetric auth key) of the given IMSI generates RAND(a radnom number) and encrypts the RAND with Ki and that gives the...
I created a CA cert and a cert signed by the CA cert and then tried to sign a CMS / PKCS7 message with the CA-signed cert and got the following error: unable to get local issuer certificate I.e. it sounds like I need to import the CA cert I created into OpenSSL somehow. Any ideas as to how I'd go about doing that?
I understand that by connecting securely over SSH or HTTPS, the data that I transfer is cryptographically secure. However, can someone spying on my connection still determine the server I'm sending it to? If they can, what are the risks? What information can they get from it?
Recently the router my ISP provided started to work suspiciously. At times the wireless connection from my devices to the router breaks and the router stops responding while sometimes the connection to the ISP is lost altogether. I would shrug it off as a kind of technical problem but I am also sporadically receiving t...
On Tuesday August 18, 2015, Microsoft published an advisory pointing out a 0-day vulnerability (CVE-2015-2502) that can be exploited by an attacker to perform a remote code execution on Internet Explorer (from version 7 to 11, even if you are running Windows 10) web browser allowing him to gain the same user rights a...
I am a systems integrator using a system designed for bringing HVAC data up to a common interface; this system/software platform is called Niagara AX. The combination of the customer's network setup and requirements for a project have brought together the following scenario: All systems providing said data must commu...
To secure my PC I have setup a BIOS password, preventing any access from a live-cd. Recently I've noticed that when the BIOS asks for my password, I just have to press Enter to boot. It doesn't work if I type just anything, but it works if I type my actual password. This situation is pretty worrying as it means that my...
Open wifi is a security risk since all the data can potentially be sniffed by anyone. What I want to ask is even on a secured wifi (which requires some kind of password for authentication), the data still travels from a device to the router; can't that data be sniffed using tools? Even if the above were not possible, ...
Please Consider: English is my second language. Background I have been looking at different CP/CPS on the web. They all seem to roughly follow the same practices. However, two different policies differed: the first makes sense to me; the second… well, not so much. Although I can have a vague idea on the rationale beh...
I know it's standard for websites to use usernames and passwords to authenticate users. From what I've read, question based authentication is usually used to either reset a password, or employ two-factor authentication, but I'm wondering if anybody has used or seen a strictly question based Single Factor Authentication...