AFL experiments, or please eat your brötli

Post Syndicated from Unknown original https://lcamtuf.blogspot.com/2017/04/afl-experiments-or-please-eat-your.html

When messing around with AFL, you sometimes stumble upon something unexpected or amusing. Say,
having the fuzzer spontaneously synthesize JPEG files,
come up with non-trivial XML syntax,
or discover SQL semantics.

It is also fun to challenge yourself to employ fuzzers in non-conventional ways. Two canonical examples are having your fuzzing target call abort() whenever two libraries that are supposed to implement the same algorithm produce different outputs when given identical input data; or when a library produces different outputs when asked to encode or decode the same data several times in a row.

Such tricks may sound fanciful, but they actually find interesting bugs. In one case, AFL-based equivalence fuzzing revealed a
bunch of fairly rudimentary flaws in common bignum libraries,
with some theoretical implications for crypto apps. Another time, output stability checks revealed long-lived issues in
IJG jpeg and other widely-used image processing libraries, leaking
data across web origins.

In one of my recent experiments, I decided to fuzz
brotli, an innovative compression library used in Chrome. But since it’s been
already fuzzed for many CPU-years, I wanted to do it with a twist:
stress-test the compression routines, rather than the usually targeted decompression side. The latter is a far more fruitful
target for security research, because decompression normally involves dealing with well-formed inputs, whereas compression code is meant to
accept arbitrary data and not think about it too hard. That said, the low likelihood of flaws also means that the compression bits are a relatively unexplored surface that may be worth
poking with a stick every now and then.

In this case, the library held up admirably – spare for a handful of computationally intensive plaintext inputs
(that are now easy to spot due to the recent improvements to AFL).
But the output corpus synthesized by AFL, after being seeded just with a single file containing just “0”, featured quite a few peculiar finds:

  • Strings that looked like viable bits of HTML or XML:
    <META HTTP-AAA IDEAAAA,
    DATA="IIA DATA="IIA DATA="IIADATA="IIA,
    </TD>.

  • Non-trivial numerical constants:
    1000,1000,0000000e+000000,
    0,000 0,000 0,0000 0x600,
    0000,$000: 0000,$000:00000000000000.

  • Nonsensical but undeniably English sentences:
    them with them m with them with themselves,
    in the fix the in the pin th in the tin,
    amassize the the in the in the inhe@massive in,
    he the themes where there the where there,
    size at size at the tie.

  • Bogus but semi-legible URLs:
    CcCdc.com/.com/m/ /00.com/.com/m/ /00(0(000000CcCdc.com/.com/.com

  • Snippets of Lisp code:
    )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))).

The results are quite unexpected, given that they are just a product of randomly mutating a single-byte input file and observing the code coverage in a simple compression tool. The explanation is that brotli, in addition to more familiar binary coding methods, uses a static dictionary constructed by analyzing common types of web content. Somehow, by observing the behavior of the program, AFL was able to incrementally reconstruct quite a few of these hardcoded keywords – and then put them together in various semi-interesting ways. Not bad.

MariaDB 10.3-alpha released

Post Syndicated from Michael "Monty" Widenius original http://monty-says.blogspot.com/2017/04/mariadb-103-alpha-released.html

While most of the MariaDB developers have been working hard on getting MariaDB 10.2 out as GA, a small team, including me, has been working on the next release, MariaDB 10.3.

The theme of MariaDB 10.2 is complex operations, like window functions, common table expressions, JSON functions, the theme of MariaDB 10.3 is compatibility.

Compatibility refers to functionality that exist in other databases but have been missing in MariaDB:

In MariaDB 10.2 ORACLE mode was limited to removing MariaDB specific options in SHOW CREATE TABLE, SHOW CREATE VIEW and setting SQL_MODE to “PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, ORACLE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS, NO_AUTO_CREATE_USER”.

In MariaDB 10.3, SQL_MODE=ORACLE mode allows MariaDB to understand a large subset of Oracle’s PL/SQL language. The documentation for what is supported is still lacking, but the interested can find what is supported in the test suite in the “mysql-test/suite/compat/oracle” directory.

If things go as planned, the features we will add to 10.3 prior to beta are:

Most of the above features are already close to be ready (to be added in future Alphas), so I expect that it willl not take many months before we can make a first MariaDB 10.3 beta!

This is in line what was discussed on the MariaDB developer conference in New York one week ago, where most attendees wanted to see new MariaDB releases more often.

MariaDB 10.3 can be downloaded here

Happy testing!

UNIFICli – a CLI tool to manage Ubiquiti’s Unifi Controller

Post Syndicated from Anonymous original http://deliantech.blogspot.com/2017/04/unificli-cli-tool-to-manage-ubiquitis.html

As mentioned earlier, I made a nodejs library interface to the Ubiquiti Unifi Controller’s REST API which is available here – https://github.com/delian/node-unifiapi
Now I am introducing a small, demo, CLI interface, which uses that same library to remotely connect and configure Ubiquiti Unifi Controller (or Ubiquiti UC-CK Cloud Key).
This software is available on GitHub here – https://github.com/delian/unificli and its main goal for me is to be able to test the node-unifiapi library. The calls and parameters are almost 1:1 with the library and this small code provides great example how such tools could be built.
This tool is able to connect to a controller either via direct HTTPS connection or via WebRTC trough Ubiquiti’s Unifi Clould network (they name it SDN). And also you have a command you could use to connect to wireless access point via SSH over WebRTC.
The tool is not completed, neither have any goal. Feel free to fix bugs, extend it with features or provide suggestions. Any help with the development will be appreciated.
Commands can be executed via the cli too:

npm start connectSSH 00:01:02:03:04:05 -l unifikeylocation

OVH Renews Platinum Sponsorship of Let’s Encrypt

Post Syndicated from Let's Encrypt original https://letsencrypt.org/2017/03/23/ovh-platinum-renewal.html

We’re pleased to announce that OVH has renewed their support for Let’s Encrypt as a Platinum sponsor for the next three years. OVH’s strong support for Let’s Encrypt will go a long way towards creating a more secure and privacy-respecting Web.

OVH initially got in touch with Let’s Encrypt to become a Platinum sponsor shortly after our public launch in December of 2015. It was clear that they understood the need for Let’s Encrypt and our potential impact on the Web.

“Over a year ago, when Let’s Encrypt came out of beta, it was an obvious choice for OVH to support this new certificate authority, and become a Platinum sponsor,” said Octave Klaba, Founder, CTO and Chairman. “We provided free Let’s Encrypt certificates to all our Web customers. At OVH today, over 2.2 million websites can be reached over a secure connection, and a total of 3.6 million certificates were created for our customers during the first year.”

In the past year, Let’s Encrypt has grown to provide 28 million certificates to more than 31 million websites. The Web went from around 40% HTTPS page loads at the end of 2015 to 50% HTTPS page loads at the start of 2017. This is phenomenal growth for the Web, and Let’s Encrypt is proud to have been a driving force behind it.

Of course, it wouldn’t have been possible without major hosting providers like OVH making it easier for their customers to enable HTTPS with Let’s Encrypt. OVH was one of the first major hosting providers to make HTTPS available to a large number of their customers, and they are continuing to expand the scope of services that are secure by default.

“We then wanted to go one step further,” continues Octave Klaba. “We decided to launch SSL Gateway, powered by Let’s Encrypt. It’s an all-in-one front-end for your infrastructure with HTTPS encryption and anti-DDOS capability. It makes the Web even more secure and reliable. This service is now available to everyone, for free.”

Financial and product commitments like these from OVH are moving the Web toward our goal of 100% encryption. We depend on support from organizations like OVH to continue operating. If your company or organization would like to sponsor Let’s Encrypt please email us at [email protected].

node-unifiapi – NodeJS API to access Ubiquiti Unifi Controller API

Post Syndicated from Anonymous original http://deliantech.blogspot.com/2017/03/node-unifiapi-nodejs-api-to-access.html

I have completed the initial rewrite of the PHP based UniFi-API-Browser to JavaScript for NodeJS.
The module and some auto generated documentation with some basic examples is available here:
The supported features includes all of the UniFi-API-Browser calls via the direct REST http calls or via WebRTC (using Ubiquiti Unifi Cloud) as well as SSH access to Unifi Access Points via WebRTC.

Заслужаваме ли цветя за 8 март?

Post Syndicated from original https://nookofselene.wordpress.com/2017/03/08/zaslujavame-li-cvetya-za-8-mart/

Осми март е. В офиса ни посрещат с цветя. Става ми радостно от милия жест.
cvetiaМайка ми винаги се е мръщила на този празник – изглежда й кух, лишен от съдържание. Само един ден в годината ли жената е уважавана, останалите дни – какво, пита тя. Мъжете пък мърморят, че те си нямат свой ден в годината. И всъщност наистина е странно – че един ден в годината трябва да се чувстваме суперспециални по причина, че… ами, че сме част от половината човечество.
Всъщност 8 март е друго. Нещо, което покрай букетите и картичките сме забравили. 8 март е денят на хората, които преди поколения са се борили да имаме ние живота, който имаме сега. Приемаме този живот за даденост просто защото е логично и справедливо да е устроен по този начин. Но светът не е справедлив поначало. А с времето се подобрява малко по малко заради хората, отдадени на това.
Всички хубави неща, които приемаме сега за даденост, съществуват, защото други хора преди нас са се борили да ни ги извоюват. Премахването на робството в световен план, утвърждаването на свободата на личността, на независимостта на държавата ни, въвеждането на всички видове човешки права, на равноправието – в това число и на половете. Колко помним за тези хора?
8 март е още нещо – ден на хората, които продължават да се борят за равноправие и справедливост днес. Защото дори сега, в ХХІ век, дори тук, в Европа, равноправието не е универсално. Тези, които живеем цял живот в комфорта на извоюваното още много преди раждането ни, не осъзнаваме, че около нас продължават да съществуват много несправедливости.
Преди малко бях на премиерата на „Нейната изповед“ – филм за една истински велика личност, и то наша съвременничка. За човек, за когото не чуваме по новините и когото не обсъждаме. Българка, отишла да работи като чистачка в Гърция, за да може да спаси от смърт с помощта на гръцкото здравеопазване своя малък син.
И решила да помогне на още хора – ако трябва, с цената на собствения си живот.
kostadinka_kunevaЧистачка, която воюва с години срещу тоталното безправие на чистачките – работата по 18 часа на денонощие при заплащане на 6 е само част от страшната картина. За награда е залята от работодателите си с киселина. Но вместо да бъде оставена да умре безименна и неизвестна, тя е издигната в символ на свободата. Лекувана е с даренията на стотици хиляди гърци. А после с вота на същите тези хора е избрана за депутат в Европарламента.
8 март е денят на един такъв човек – жертвал живота и здравето си за правата на онеправданите.
8 март е празник на всички – независимо жени или мъже, – които са се борили и се борят за равноправие за онеправданите. Днес, когато несправедливостта вече обхваща доста по-малко хора, но (за съжаление) често е съвсем извън полезрението на незасегнатите.
Така че не, ние не сме суперспециални на 8 март. Суперспециалните хора обикновено не получават цветя.
Дали ние заслужаваме да получаваме цветя?
Да, разбира се. Защото е мил, човешки жест, носещ радост и на човека, който го прави, и на човека, за когото е. Защото сплотява и стопля, носи усмивка на колежката, на приятелката.
Но не защото е 8 март.

The Dystopia of Minority Report Needs Proprietary Software

Post Syndicated from Bradley M. Kuhn original http://ebb.org/bkuhn/blog/2017/02/13/Turow.html

I encourage all of you to either listen to
or read
the transcript of Terry Gross’ Fresh Air interview with Joseph
Turow
about his discussion of his book “The Aisles Have Eyes: How
Retailers Track Your Shopping, Strip Your Privacy, And Define Your
Power”.

Now, most of you who read my blog know the difference between proprietary
and Free Software, and the difference between a network service and
software that runs on your own device. I want all of you have a good
understanding of that to do a simple thought experiment:

How many of the horrible things that Turow talks about can happen if there
is no proprietary software on your IoT or mobile devices?

AFAICT, other than the facial recognition in the store itself that he
talked about in Russia, everything he talks about would be mitigated or
eliminated completely as a thread if users could modify the software on
their devices.

Yes, universal software freedom will not solve all the worlds’ problems.
But it does solve a lot of them, at least with regard to the bad things the
powerful want to do to us via technology.

(BTW, the blog title is a reference
to Philip
K. Dick’s Minority Report
, which includes a scene about
systems reading people’s eyes to target-market to them. It’s not the main
theme of that particular book, though… Dick was always going off on
tangents in his books.)

The Dystopia of Minority Report Needs Proprietary Software

Post Syndicated from Bradley M. Kuhn original http://ebb.org/bkuhn/blog/2017/02/13/Turow.html

I encourage all of you to either listen to
or read
the transcript of Terry Gross’ Fresh Air interview with Joseph
Turow
about his discussion of his book “The Aisles Have Eyes: How
Retailers Track Your Shopping, Strip Your Privacy, And Define Your
Power”.

Now, most of you who read my blog know the difference between proprietary
and Free Software, and the difference between a network service and
software that runs on your own device. I want all of you have a good
understanding of that to do a simple thought experiment:

How many of the horrible things that Turow talks about can happen if there
is no proprietary software on your IoT or mobile devices?

AFAICT, other than the facial recognition in the store itself that he
talked about in Russia, everything he talks about would be mitigated or
eliminated completely as a thread if users could modify the software on
their devices.

Yes, universal software freedom will not solve all the worlds’ problems.
But it does solve a lot of them, at least with regard to the bad things the
powerful want to do to us via technology.

(BTW, the blog title is a reference
to Philip
K. Dick’s Minority Report
, which includes a scene about
systems reading people’s eyes to target-market to them. It’s not the main
theme of that particular book, though… Dick was always going off on
tangents in his books.)

The collective thoughts of the interwebz