News for hackers. Stuff that matters.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by phsource on Thursday August 31, 2017 @09:34AM (#15140144)
After reading the API docs, it appears that the FCC operates a mini-imgur/pastebin/file hosting service to help attach files to FCC filings:

https://www.fcc.gov/ecfs/public-api-docs.html#Full-Filing-St...

Unfortunately, these "temporary" file uploads end up accessible from the main FCC domain (i.e. fcc.gov), unlike e.g., Google (e.g., "googleusercontent.com" vs. "google.com"). In Google's case, the separate domain helps distinguish the content as unofficial.

It's understandable why it was originally engineered this way, since it's probably easier to create a subdomain under fcc.gov rather than to get an unrelated domain, but that's why we ended up here!

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by throwaway2016a on Thursday August 31, 2017 @09:49AM (#15140246)
"Easier" is a relative. And in this case relatively small.

The server and DNS configuration you need for a subdomain is identical to what you need for separate domain. Possibly slightly more to manage if you are using the "naked" domain because of the DNS issue with not supporting CNAME records on the naked domain.

If you already have a wildcard SSL certificate for the subdomain a separate domain might be more work because you need a new cert and you don't if you stick with a subdomain.

The most work is actually buying the domain.

Then again, this is government we are talking about so buying a $10 domain is probaly three weeks worth of paperwork.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by mattmanser on Thursday August 31, 2017 @09:51AM (#15140267)
More likely that the developer didn't even think about it, I know I probably wouldn't.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by Filligree on Thursday August 31, 2017 @12:48PM (#15141627)
You should!

There are security implications galore, mostly due to the same-origin policy. Books can and have been written about web security; if you're writing webapps, you need to read one.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by mattmanser on Thursday August 31, 2017 @05:21PM (#15144034)
I'm not saying you shouldn't think about it, it's just a non-obvious vulnerability.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by Filligree on Thursday August 31, 2017 @05:36PM (#15144155)
Most of them are. Thus the book.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by mattmanser on Thursday August 31, 2017 @08:21PM (#15145180)
My feeling is that it's like computer security, you can bleat all you like about how the millions of developers have to magically know this stuff, or you can build it in by default.

One method works, one doesn't.

But keep on telling people to read a book, for all the good it will do.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by Filligree on Thursday August 31, 2017 @08:37PM (#15145235)
It's not like I'm in any position to do what you're suggesting. It's a bit late to revamp the entire web "security model" by this point.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by xenophonf on Thursday August 31, 2017 @11:40AM (#15141059)
Then again, this is government we are talking about so buying a $10 domain is probaly three weeks worth of paperwork.

It's not that bad.

It is slightly annoying that the procurement rules don't let sysadmins buy multi-year domain registrations---not even for .gov domains.

Ultimately, there's nothing stopping a federal employee or contractor from buying another domain except ignorance of good infosec practices. Even a .gov domain isn't all that expensive---$400/year is a drop in the bucket of federal spending.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by jimktrains2 on Thursday August 31, 2017 @08:24PM (#15145191)
Wait, .gov domains cost money? I guess I just thought the us government assigned them as needed to agencies. Never thought about cross agency bills.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by xenophonf on Friday September 01, 2017 @08:46AM (#15147889)
41 CFR part 102-173, the law that authorizes GSA to run the dot-gov registry, allows them to recover their operational costs from registrants:

https://www.gpo.gov/fdsys/pkg/CFR-2010-title41-vol3/xml/CFR-...

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by jimktrains2 on Friday September 01, 2017 @09:10AM (#15148040)
It completely makes sense, I just never thought about it.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by doingmything on Thursday August 31, 2017 @10:00AM (#15140324)
And how many layers of red tape do you think the dev would have to go through to get a new domain?
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by t3f on Thursday August 31, 2017 @10:09AM (#15140392)
And how far removed is the sub-team that manages this specific content posting part of the web content from the DNS team/process/red-tape to even make the inquiry about how to?
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by throwaway2016a on Thursday August 31, 2017 @10:07AM (#15140372)
On my team as a private company it looks like:

Dev: "Can I have a domain?" Me: "Sure" 10 minutes later done

In government I imagine you need a procurement order which needs to be approved. And my anecdotal experience has been that the dev teams don't always take high priority in those queues.

I'm sure it's not as hard as I made it out to be but it is certainly not as straight forward as many of us are used to.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by namdnay on Thursday August 31, 2017 @10:31AM (#15140566)
It's not really linked to private vs public. It's more of an organisation size question. I can guarantee that if you were working in a megacorp it would be the same issue
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by 52-6F-62 on Thursday August 31, 2017 @10:36AM (#15140604)
I work in a megacorp. Can confirm. Have to file tickets, and they have to seek approvals for either delegation of server allotments and subdomains or new dns pointers or worse.

I regularly need to host internal applications accessible by other staff and often just do so from my machine during the daytime and send them updated IP addresses/ports where they can access them... boss didn't even think it was possible...

Yeah. I imagine the government processes are pretty convoluted.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by paulmd on Thursday August 31, 2017 @12:59PM (#15141742)
And this is how you get departments running their own infrastructure lava-layered over the top of the unresponsive corporate IT...
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by 52-6F-62 on Thursday August 31, 2017 @05:20PM (#15144033)
Pretty much.

Some of the tools are temporary mind you, and it's much quicker to run the temp tool on my machine through the local network for a couple of weeks than to spend a few days waiting on resource allocation and then getting it shut down afterward.

Some of them are scheduled to be merged into larger projects that will seek out the necessary permanent resources... in time.

And things always take their time. It's my first excursion into such a large company and it is boggling at times. Things that would be small flaws in a smaller business are magnified 10, or 100x.

Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by spicyj on Thursday August 31, 2017 @10:48AM (#15140674)
I work in a megacorp. I'd expect it to take about a day (but of course we also already have domains for exactly this purpose too).
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by jofer on Thursday August 31, 2017 @10:35AM (#15140595)
To be fair, at every large company I've ever worked for (mostly major oil companies, not tech companies) it's at least a two to three month process.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by Godel_unicode on Thursday August 31, 2017 @10:24AM (#15140510)
It's actually worse than you made it out to be. In order to buy a dotgov domain, you not only need your management's approval (and since it's "representing the department to the public" that chain goes very high up) you also need to convince GSA (the registrar for dotgov) that you have a need for a new domain. It's not fun unless you're 18f under the Obama administration, and they don't count.
Re:The FCC.gov Website Lets You Upload Malware Using Its Own... by 27182818284 on Thursday August 31, 2017 @11:35AM (#15141029)
A lot of public universities had a homegrown dropbox lurking somewhere in their infrastructure. Thankfully they were already abused to the point that schools have been shutting them down over the last 5-10 years. (Usually abuse not in the form of malware, but in the form of file sharing movies, etc)