instruction
stringlengths
24
27.2k
I don't know if this is the right place for this question but here it goes... When I access websites that have Google ads included with a device (pc, tablet, laptop) connected to my LAN, these ads are blocked and replaced with other annoying ads from other ad networks. This happens in all web browsers. But when instead...
I am in penetration testing on a server with Linux RHEL6/7 os. Vulnerability databases such as http://www.cvedetails.com/ mentioned the vulnerability CVE-2014-2483 for Java in Linux RHEL systems. I searched for the way that I can test my destination for the vulnerability, but I didn't find anything. How can I test my s...
I logged in to my bank tonight and was prompted that all customers were being forced to change their passwords for "security reasons". The policy for new passwords is: 6 to 10 characters, no special characters, no repeated characters, not case-sensitive. My old password was much better than this. I used a random passwo...
I was running a few tests on a website when I came across this: Request: GET /accounts?intended_destination=internal_api%2Fcampaigns_dashboard%7Cshow&intended_params=format%3Dhtml HTTP/1.1 Host: ads.example.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 Accept: text/html,applicati...
Section 37 of the United Kingdom's computer misuse act states you are not allowed to produce, obtain or supply articles which can be used for computer misuse. How do UK information security bloggers and conference speakers go about this, as technically, even with non-malicious intent, there is a violation of the CMA.
I created a reverse_https backdoor ( windows/meterpreter/reverse_https ) with msfpayload. Now I want to create a reverse shell from my target with a multi handler. The problem is that when I exploited the handler I see that it ran at 0.0.0.0:443 ! I set LHOST to my private ip in the network and the other payload worke...
We're running a popular social game and we have a security problem that is growing more and more popular these days. We have the following product requirements: There should be no registration to the game, simply giving Facebook permissions is enough (ie. no password, email validation, etc) Players interact with each ...
On .net we use SecureString class to keep our applications variables in memory, safely. Microsoft says: Represents text that should be kept confidential. The text is encrypted for privacy when being used, and deleted from computer memory when no longer needed. This class cannot be inherited. This class is in a libra...
I read that localstorage is susceptible to XSS attacks. I currently store JSON Web Token (JWT) in localstorage, and I access and display data about the user through localstorage: var localstore = // localStorage object // On user login, server responds with token, store the token on client! localstore.store(jwt_token...
In a lot of different products the CSRF token is stored in a session. Which means that if the session has expired then the next form submit will fail. Example scenario: you open a login form, the session is implicitly created if you didn't have one yet and a CSRF token is persisted in a session and is put as a hidden f...
I've read lots of different articles on what DNSSEC is and that it provides authentication for DNS. What I unfortunately haven't seen is a good description of the types of attacks and abuse that DNSSEC can prevent/mitigate. With most of my own personal sites' DNS hosted by registrars, what compelling reasons should mo...
Every place I looked, people recommended that storing passwords via encryption is like storing passwords in plain text. But every place I've looked, everyone recommends using a password manager like KeePass. I guess the real question I'm asking is how is KeePass or other password managers more secure than storing them...
Since laptop and other electronic device seizures at US borders became legal without a warrant (including making copies of data), 7% of ACTE's business travelers reported being subject to a seizure as far back as February 2008. What measures have IT departments taken since to protect sensitive corporate data, and are t...
Before opening unknown email (not in spam folder) how we can identify no any danger inside the mail (with availability of active virus guard)
I've been using the sha1() function to hash password before inserting it into my database. But I have this procedure so that it just won't be the password to be hashed. My page would register a user along with their password. After submission, it would enter first the username into the database, then get the unique ID ...
Related are-there-any-working-proof-of-concept-string-comparison-timing-attacks I was looking at doing some encryption and hashing in PHP and came across this note Please be careful when comparing hashes. In certain cases, information can be leaked by using a timing attack. It takes advantage of the == operator only ...
My application encrypts a file, and the result is written to a different one. How do I safely remove the original one (C++)? Update. Wow! The problem is more complicated than I thought of it... 1) My application's purpose is to encrypt files from user's hard drive. I may not require all the data to be piped, as I actua...
I am looking to verify the integrity of a very small payload, approx 64 bytes, which will be stored in a QR code. I need to verify that the payload has not been generated or altered by an attacker. Adding a secure hash at the end of the payload will use up alot of my payload space. I was hoping to encrypt the entire pa...
While checking the facebook php sdk implementation I noticed that they expose the access token to the resource owner (user) $params = array( 'next' => $next, 'access_token' => $session->getToken() ); return 'https://www.facebook.com/logout.php?' . http_build_query($params, null, '&'); FacebookRedirectLoginHelper.p...
I'm testing a website to find out vulnerabilities. Website is fully running on HTTPS only. While testing, I came to know that the pdf files can be downloaded by authorized users only. This functionality is accessible after being logged-in into the application. Suppose this is the path: https://www.test-site.com/confare...
According to OWASP XSS Prevention Cheat Sheet, one should Strictly validate unsafe attributes such as background, id and name I understand that background could contain data: urls, and can therefore be exploited even if the content is HTML encoded according to Rule 2. But why do I have to strictly validate id and na...
If I hypothetically wanted to allow users to use an avatar from an arbitrary URL like this: <img class="avatar" src="{user input}" /> There are many problems that I can think of: There are data uris so potentially it's possible to create a self-contained PDF file; would this actually work inside a <img /> tag? There's...
Many password-based encryption utilities (e.g.: KeePass, TrueCrypt) do something along the lines of... Encrypt data with super-strong random-generated key, "data key". Encrypt data key with another key, "user key", based on user-provided password. When access is needed, user provides password. Password is used to recr...
I recall hearing this before, the ability to boot up a Windows PC with an unencrypted hard drive using an installation disk/usb, and use the command line utility on the Windows installation disk to add a user. This is an obvious attack vector because somebody could use this to add an administrative user, install spywar...
I noticed that multiple password-locker applications recommend that you use the drag-and-drop feature to transfer passwords to login forms instead of copying the passwords to the clipboard or having the password locker type the password for you using simulated key presses. The basic argument its fairly easy for a keylo...
how to check the SSL/TLS encryption of my mobile application.is there any way to check and watch encrypted traffic in my cell i m using android phone..is there any procedure to check the encryption of my mobile apps
This question (Prevention measures against laptop seizure at US borders) addresses a number of techniques for securing data while crossing borders. Perhaps the most useful advice was to simply not have any sensitive data stored on the device, and to have ways of retrieving the data (via VPN or whatever) after you have...
I have read about SSL and TLS; I know how RSA works and why digital certificates are necessary (more or less), but I am curious about how we prevent a fake digital certificate. The operating system comes with some certificates pre-installed, but how can we be certain that the certificates have not been changed in our c...
I'm struggling with the reset password function of a web app, the way i'm inclined to do it is by sending a token based url to the email of the user and than the user can access and reset its password, but is email a trusted way to carry such sensible data ?
On my site, if I were to block <script> from the url, could this prevent some cases of XSS? Any way someone could bypass that?
I read the FAQ over here andI feel that we do not need to be PCI Compliance but I have read many other posts, articles etc which seem to contradict my assumption. So I was wondering if any of you guys can throw some light on it. Here is my use case, We are a subscription based platform, so basically we charge users on ...
In reviewing several Windows 7 computers built from the same image (using wmic services command), I'm seeing most all the Window services paths displayed as C:\windows not C:\Windows. The 'w' is lowercase. For example, the eventlog service is showing as C:\windows\Sytstem32\svchost.exe. No other machines I've ever insp...
I have a scenario where semi-sensitive [1] data for a corporate web application is to be stored in the browser's localized storage (Indexed DB to be specific, via JavaScript). The intention is to encrypt the data (AES 256) at the server level with a "master" key/passphrase, but then send a 'time-bombed' generated key t...
I connected to my home-made VPN, which uses OpenVPN and 2048bits encryption keys, from my work. What are the security risks of doing so, given the fact that the servers are in the same network my work's PC is, and how can I minimize them if any? Thanks EDIT: What I mean, is that the IT Manager seems to be pissed off by...
I'm researching how my smart card's chipset generates random numbers. According to a source in forums the YubiKey NEO is based on the A700x chipset from NXP. The page for the chipset indicates that the chipset provides a: Low-power True Random Number Generator (TRNG) in hardware, AIS-31 compliant I've been trying to ...
A few weeks ago I was non-maliciously using a website with server-side calculations when curiosity got the better of me and I decided to mess with some GET request values. I expected the site to give me unrealistic math calculations, but what I didn't expect was to accidentally crash the site for a bit over an hour. At...
I recently had a huge increase in visits of a website I manage. On deeper check I discovered I had a new referral. When I opened the website I was quite surprised. It's not a just a referral, basically someon bought a domain and is opening my website from inside a full page frame like this: frame name="main" noresize ...
I a very curious to understand botnets practically. I want to run a p2p botnet (storm or waledac) for analysis and learning. I have mainly two issues: Where can i get access to binaries of either of the two? How do I create a testbed for running the binary? I found out that honeypots can be used for running the same,...
I have a Wordpress website from a client that was hacked (website is clean now). The Wordpress is version 3.3.1 and it has 42 active plugins. It's a nightmare in that installation, after many tries updating the Wordpress core, plugins and fixing parts of code it still breaks the website. From what I've seen I have two ...
Suppose I have a protocol like the one below between users A and B; -A sends random nonce G1 to B -B sends back hash_k(G1) and random none G2 -A verifies hash_k(G1), then sends back hash_k(G1 | G2) -B verifies and a connection is made Would this protocol be safe from eavesdroppers and other attacks like man in the m...
I have a little doubt on using HSTS, as per this video, once HSTS is implemented, all the URLs will be going in HTTPS, but as we all know in using SSL we need pre-specified encryption algorithms and key exchanges. My doubt is since the first request is implemented with HTTPS so would they be using same algorithms and...
I'm running a security test on a website. The login request looks like this: POST /sessions HTTP/1.1 Host: example.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-GB,en;...
One of our client perform a qualys pentest, and find LB based on TTL value. We have only 1 server behind FW with NAT IP. Running ubuntu that has default TTL '64' qualys output Number of web servers behind load balancer: 2 - based on IP TTL values Received 35 SynAck packets with ttl=52 Received 157 SynAck packets with...
I develop IoT (Internet of Things) devices on small embedded systems, where it is very difficult to update the local certificate once they have been deployed. It really needs to be avoid if it can. With the new 39 month age for TLS certificates, I am trying to understand how this will effect my development options. I w...
Suppose two users have done a murder at 6pm at Dunkin Donuts, I have got the hard disks on site, disk1 and disk2. How do I identify the time and order of each user's activities on the hard disks? The Gmail communications are easy to pick on, but I am not getting anywhere with the rest. I can see that users logged on m...
Due to TrueCrypt being pulled from the web even though it's been audited, I was asked to compare the audit of TrueCrypt against audits and information available for other products that do whole disk encryption, including McAfee, Symantec, etc. The problem is, I'm not sure if there were any audits performed on those pro...
I am planning to implement a darknet in an organizational network to work alongside Snort to detect malicious scanning activities in the network like the CAIDA network telescope/Internet Motion Sensor. I am a little confused with the darknets like Tor and Freenet which are in the internet and the concept which I want t...
Does Metasploit have functionality to demo penetration testing on Smart Meter or Zigbee?
I am creating a web application which needs to make direct connections to internal resources (e.g. database servers), but will also need to be accessed from the internet. The web app exposes web services, and also does rendering of the HTML UI (ASP.NET MVC). My plan is to install the application on our internal network...
What is the shortest timing difference resolved by a timing attack demonstrated over the internet (not just a LAN)? This paper from 2009 suggests 15µs. By how much has that number improved?
I'm having some trouble in setting the country of the tor exit nodes. Following this link, by adding the bellow entries to the ./Data/torrc ExitNodes {ru} StrictNodes 1 an exit node from the specified region should be used. However, geo locating the exit nodes shows that none are from Russia. Upon picking a new identi...
I've read quite a few different articles on how to setup PGP keys with an offline master key. I own multiple YubiKey NEO hardware smart cards which I intend on using for PGP and as an SSH key. One of the hardware keys will be my daily driver, the others kept in secure locations elsewhere in case of a loss of the key. T...
Obviously Heroku wants you to think they're PCI compliant by telling you "Heroku’s infrastructure provider is PCI Level 1 compliant" (AWS). https://www.heroku.com/policy/security But since Heroku runs their own IaaS on top of that, wouldn't Heroku themselves need to be PCI compliant in order for any Heroku-based enviro...
An apache web server access weblog shows a request type "COOK" where POST or GET are normally found. Is such a request part of any known web-based site attacks?
Are there any cryptographic schemes/protocols that would allow me to encrypt a file, make it publicly available, but ensure that it can only be decrypted after specific date? I assume it would be almost impossible without a trusted authority (notary). Or is there some way? I was inspired by the idea of "secure triggers...
I have a headache with my shop using Magento, my shop is very vulnerable to hacking by bots or other people. They often add some scripts and files to sending spam mails. I think they come to me from old files, so I try to update all addons and Wordpress (integrated with Magento). I update all without Magento files I go...
Someone took my sd card out of my phone and saved information on it that I didn't know about. Is there anyway to find out where my sd card was used last.
There is a certain form that gets posted over POST. The form has some form elements. I am doing a pen-test on the application that has this form. The form values are being stored in a certain database. It's a PHP application and the interesting part, that I learned through some discussions with the developer who own th...
Suppose we have the hierarchical trust model as seen below. Alice will trust Doris' public key iff there is a Certifcation Path from her to Doris. Alice thus pocesses a valid certificate of A. Does Alice need to have a certificate of D, B and C as well? What happens if Alice explicitly does not trust C. Will she tru...
Let's say I create a microsite for a client that contains confidential business information. We need to place this in a location the client can access, in order for them to approve for launch. If we place this microsite behind a login, we have a guarantee noone can just stumble across the content and compromise it. But...
Pinging all the IPv4 address space takes about 5 hours (and can generate beautiful maps). Port-scanning doesn't take much longer and can reveal vulnerable services, such as remote administration of routers with default credentials or misconfigured servers. Assuming it scales linearly, scanning the IPv6 address space co...
I've recently seen a few strange requests made on our site, I'm wondering what they might be. Normally we get sql injection attempts like this: 1111111111%22%20UNION%20SELECT%20CHAR(45,120,49,45,81,45),CHAR(45,120,50,45,81,45),CHAR(45,120,51,45,81,45),CHAR(45,120,52,45,81,45),CH While I'm no expert, I loosely unders...
Parallels Plesk, a server administration software package, uses HTTP(S) on port 8443 (ref). I know that ports <1024 are only available for root. This means that if the server Plesk is using for some reason crashes, any user can start a new server on port 8443 and imitate Plesk (right?). Of course, this user won't have...
I am reviewing for my final exam tomorrow, I came across a past exam question. An attacker wants to initiate a TCP handshake with a target to make him think E initiated it, attacker knows IP address of E (B, C, D, R), which ones can attack if the target is A? (A, B, D, R), which ones can attack if target is C? (A, B,...
A thought experiment My goal is to know whether, and how, a 3rd party python script that may be entrusted with sensitive information, can be trusted on a fundamental level. Basically this question is, can a Python script communicate with a 3rd party without importing one of a set of core modules to facilitate a communi...
I'm trying to understand SMTP header injection. I'm using Python's SMTPLIB library to proto-type this vulnerability. Here is my code: import smtplib # create variables server = 'smtp.zoho.com' port = 587 to = 'recipient@test.com' user = 'sender@test.com' passwd = 'pwd' smtpserver = smtplib.SMTP(server, port) def mai...
I'm working on implementing an IP-filter which blocks all requests by machines outside our IP-range. This is for an asp.net project (written in c#). I've read on multiple forums that the safest way to put your IP-filter code is in an HTTP Module which picks up the request early in the aspx-pipeline. However, I've im...
I am doing an exam practice question, suppose I have a function like; void func(char* arg) { char buf[32]; strcpy(buf, arg); } command break func: -buf begins at 0xbffebfb0 -(gdb) x/2wx $ebp 0xbfebfd8: 0xbffec068 0x08048fe1 machine is 32 bit little endian, no defenses like aslr or dep c) You want to run...
I have my own virtual DNS infrastructure, from the root to the mail server mail.example.com. Everything is signed using DNSSEC. client1@example.com can send email to client2@example.com, digitally signed with his certificate. As both the clients trust the same CA, client2 can validate this message. What if the CA is co...
So I suppose this is specific to the OS you are using or the filetype or software used to open it, but my question stands open for all really but I am particularly interested in more common files such as docx and xls. Note that the person to open the file may have not edited or saved the file, simply open and closed it...
My application encrypts a file with AES, and the data is read, encrypted and written with a buffer. It's size is defined with a BUF_SIZE value, which is constant. I will try to explain my question with an example. E.g the file size is 1.73 GB, and the buffer is 16 KB. The application calculates (fsize % BUF_SIZE) and f...
We have an ASP.NET web app running in IIS, with about 200 users, some are inside our LAN and other ones are outside our LAN. Every user has a userid account and a password to login. Besides those credentials, we want to add more security for accessing that web app with this requirement: A user will access that web ap...
Me and a friend of mine are simulating a widespread scenario where router configurations are untouched (default passwords) and are visible from the internet. Him, acting as the victim, will constantly ping out a packet with a specific content (just a string) to a website, and me, as the bad guy, is supposed to sniff ou...
I have web server (hosted using IIS) in DMZ hosts multiple web services (WCF), the clients are non-server applications (they are standalone .NET application) reaching these web services via internet using the HTTPS protocol. My server has an SSL certificate issued by Verisign, the point is that my client does not have ...
How does my browser detect my location even via proxy? I have tried this code via VPN and got the same result as without it. According to the specification my browser should detect it from: Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such ...
BLUF: I'm using an SSD on my system, so my primary reason to use tmpfs to increase the life of my drive by moving high read/write files to volatile memory. But from a security point of view, I'd also like to know if it would make any sense to encrypt volatile memory for security purposes. Current System Specs: OS: ...
If a company needs to be PCI compliant, are there any fines levied on them if they don't do penetration or vulnerability testing? If yes, is it an automatic fine, or is it only if they are caught?
I was given an assignment for my Computer Security class. We we were given a piece of code to analyze and determine the vulnerabilities that it might have. #!/bin/sh # shell script to create a copy of the shadow file to the /tmp directory echo > /tmp/shadowcopy # allow only root access chmod 600 /tmp/shadowcopy # a...
I am attempting to setup a secure and private email account for my company. we currently use gmail which actually requests the emails from a hosting service provider that is configured with our company domain name. I would like to stop using gmail, but our hosting is not very reliable (not as much as gmail can be, but ...
I saw the advisory stating that EC2 instances are not vulnerable to VENOM. My understanding is that EC2 runs on Xen, and that VENOM affects XEN. Can anyone explain why EC2 is not vulnerable? Do they remove the floppy drive emulation? Or did they just patch, so they were vulnerable, but now they are not?
We know that IMSI-catcher detectors such as the Android-IMSI-Catcher-Detector project exist, but has anyone done a field study across various parts of the world as to how many there are and where? Would be curious to see a map of the world (Google-Map-style) with pins or heatmaps of where these IMSI catchers are to dem...
On another thread a user was trying to use SMTP injections and, as a test, trying to inject a supplementary recipient for this email. My understanding of the issue preventing him from succeeding were the following: He uses Python SMTPlib which filters parameters (unexpected data is silently dropped) precisely in order...
I have a test network setup based on virtual machines. My host machine, a web server and the firewall is under the 192.168.0.0/24 network (gateway is 192.168.0.1); a server machine is located behind the firewall on the 10.40.1.0/24 network (firewall eth1 is its gateway with IP 10.40.1.1). Please note that the firewall ...
What is the different between ART And Dalvik security, cause Google using Art after Kitkat (4.4.2) ? Just for these two options? Refrence Ahead-of-Time (AOT) compilation, which improves speed (particularly startup time) and reduces memory footprint (no JIT) Improved Garbage Collection (GC) and what about the secu...
To use RSA for signing, Alice takes a hash of the message, encrypts the hash using her own private key, and appends the result (this is the signature) to the message. Eve can of course still decrypt this using Alice's public key. However, Bob can decrypt the signature using Alice's public key and see if it matches. If...
Why won't Google allow me to use a password ending in a space anymore? Backstory: I have memorized a cipher that allows me to generate a different and very strong password across many different websites and services, without using the same password twice. In the case of Google, my cipher requires that the last charact...
When you log on to Gogo Inflight Wifi or similar, Gogo displays a captcha: A CAPTCHA is usually associated with preventing automated traffic from accessing your network; however, to connect to Gogo you need to be on the plane, thirty thousand feet in the air. It doesn't seem like this is exploitable by bots (or what t...
Maybe a quick question. We have Palo Alto's that perform SSL Decryption using a sub CA certificate issued by our internal Root CA. This is working for our internal windows domain computers as the root CA and sub CA are pushed down to all of them via Group Policy. My question is we have a few Mac users that GPO doesn't ...
I'm connecting a Salesforce ORG with a third party vender through a custom API (they basically wrote it just for us). The API requires you to retrieve a "token" that you pass into other calls through BASIC Authorization. I was caching this token but would run into an error on the second time I tried to use it. As it...
I have a use case where I want to commit symmetrically encrypted source code using GnuPG (think of Coursera assignments for backup and collaboration). I encrypt/decrypt all sources in a batch with a script and was wondering, why the output is not stable. So basically, why does echo "plain text" | gpg --armor --symmetri...
Ordinarily I'd use PBKDF2 to generate a key which i'd use with AES. But seeing as the hash is going to be as long as the data I need to encrypt is there any disadvantage to just XOR'ing it? My reasoning is if you can derive the hash you would have the AES key anyway. *Just to add the reason I would use PBKDF2 is it has...
If I use a browser through a proxy-server over a secure connection (i.e. the proxy is HTTPS) - does that mean that everything is encrypted, or just the page returned from the site? And who does the DNS lookup? Does the browser do it through my ISP (in which case the url is known to them) or does it delegate that to the...
I am wondering if my server is compromised or not I just looked at my log and seen the following line in there [Thu May 14 09:10:42.587255 2015] [autoindex:error] [pid 3422] [client 207.141.124.18:59142] AH01276: Cannot serve directory /var/www/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,inde...
Bear with me, I may have asked this question in a botched way. So I need some JavaScript code that creates a signature of JavaScript that is stored in a string. Here is an example: presignature = "<script>alert("test")</script>; I need this JavaScript code that is stored in presignature to be made into signature. I ...
Is it possible for a packet sniffer such as wireshark to be able to decrypt the traffic generated by a https connection from a browser ? I do not have control of the server, but I have control of the client browser (such as, modifying firefox options to force http, if that's possible, or giving it the client private ke...
I have several servers that I'm using for an online business. I have passwords for MySQL, Wordpress, SSH, FTP, Domain Provider, Paypal, and many more. I wanted to have a different, very long password for each service to minimize the possibility of brute forcing and of accessing my other servers in the event that one of...
I understand that PKI uses digital certificates to link a public key to an entity, but is there anything similar for symmetric cryptography. If, theoretically, PKI didn't exist, how do you know you are sending your ciphertext to the right person? Is the security in the fact that even if you are sending the encrypted te...
I find that security administrators often need to perform vulnerability checks on systems and these tasks need at least domain or local administrative rights. Does the security administrator need full domain admin rights or maybe just a power user? What is the best practice in regards to assigning windows roles to a se...
I am writing a system that accepts zipfiles from end users. The title says it all - what precautions should I take to ensure my processing server does not get compromised when I need to unzip a completely random set of user files from a zipfile and process them? The files will be run through some Python and other proce...
On Ubuntu and possibly Debian systems, you can install packages which contain images which are signed by Ubuntu's EFI key. For example, linux-signed-image-generic-lts-trusty is one of these packages. Say I have a fully-encrypted disk and an unencrypted boot partition, as is required. I use a PGP encrypted key file to d...