News for hackers. Stuff that matters.
Re:WiFi without internet on a Southwest flight by hackmiester on Thursday September 28, 2023 @12:40PM (#37692151)
Here is how to get the equivalent data on a Delta flight.

    $ curl https://wifi.delta.com/api/flight-data | jq
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   448  100   448    0     0   5600      0 --:--:-- --:--:-- --:--:--  5743
    {
      "timestamp": "2023-07-11T14:54:41Z",
      "eta": "17:48",
      "flightDuration": 278,
      "flightNumber": "DAL786",
      "latitude": 39.723472595214844,
      "longitude": -97.1514205932617,
      "noseId": "3879",
      "paState": false,
      "vehicleId": "N879DN",
      "destination": "KPDX",
      "origin": "KATL",
      "flightId": "N879DN_SF_20230711121358",
      "airspeed": null,
      "airTemperature": 24,
      "altitude": 33922,
      "distanceToGo": 179,
      "doorState": "Closed",
      "groundspeed": 442,
      "heading": -73,
      "timeToGo": 174,
      "wheelWeightState": "Off"
    }
And a fun snippet for you.

    $ curl -s https://wifi.delta.com/api/flight-data | jq -r '"https://maps.google.com/?q=", .latitude, ",", .longitude' | tr -d '\n'; echo
    https://maps.google.com/?q=40.5615234375,-101.2824478149414
Re:WiFi without internet on a Southwest flight by c7DJTLrn on Thursday September 28, 2023 @12:42PM (#37692182)
It would be nice if you could send a POST request to open the door if you want some fresh air.
Re:WiFi without internet on a Southwest flight by hk1337 on Thursday September 28, 2023 @01:42PM (#37693010)
Someone will probably figure out how to send a request to disable auto-pilot or turn off the fasten seat belt sign.
Re:WiFi without internet on a Southwest flight by naikrovek on Thursday September 28, 2023 @01:48PM (#37693099)
the airline industry is nowhere nearly as stupid as the software industry with things like this.

the communication between plane and wifi/entertainment system, if there is any, is almost certainly one-way. likely, the wifi system providing this info is receiving data from the flight systems and repeating it or transforming it a bit and providing that.

it would not surprise me at all if the flight attendants have to program everything about the flight into the system prior to departure each flight, and there is no communication from the aircraft at all.

Re:WiFi without internet on a Southwest flight by jpalomaki on Thursday September 28, 2023 @01:57PM (#37693219)
"The computer network in the Dreamliner's passenger compartment, designed to give passengers in-flight internet access, is connected to the plane's control, navigation and communication systems, an FAA report reveals." [1]

(I guess there's some kind of firewall, but we know that those are not always perfect)

[1] https://www.wired.com/2008/01/dreamliner-security/

Re:WiFi without internet on a Southwest flight by AdamN on Friday September 29, 2023 @05:21AM (#37701213)
Not a problem as long as you reboot your Dreamliner every once in a while: https://www.theregister.com/2020/04/02/boeing_787_power_cycl...
Re:WiFi without internet on a Southwest flight by eep_social on Thursday September 28, 2023 @02:01PM (#37693270)
IIRC the in-flight infotainment systems are entirely separate from the avionics control systems at the data layer. I recall being told that in some cases even the flight status is actually pulled from a 3p api service rather than hooked into the onboard avionics.

There could be some fuckery via shared power or other non-data systems but that’s probably beyond someone sitting in a seat with standard laptop hardware.

Re:WiFi without internet on a Southwest flight by chaps on Thursday September 28, 2023 @02:13PM (#37693433)
Might be one way, but that doesn't mean you can't DDoS it (by accident or otherwise).
Re:WiFi without internet on a Southwest flight by hackmiester on Thursday September 28, 2023 @02:59PM (#37694051)
If the latter was true, then "wheelWeightState" (and others) would not work. But, they do work.
Re:WiFi without internet on a Southwest flight by MBCook on Thursday September 28, 2023 @10:57PM (#37698814)
Not necessarily. All this could be reported up to airline HQ through the satellite link and then the IFE/customer WiFi could be downloading it again to serve locally.

That would prevent any need for direct connection between the systems.

Is that how it works? I doubt it. But it could be done.

Re:WiFi without internet on a Southwest flight by aftbit on Friday September 29, 2023 @02:25PM (#37708258)
The weight-on-wheels switch reports its in-the-air status over ADSB. It errs in the direction of assuming in-the-air, which was implicated in a near miss on the ground in 2020 between two Air Canada flights[1][2]

1: https://www.tsb.gc.ca/eng/rapports-reports/aviation/2020/A20...

2: https://www.youtube.com/watch?v=nj7nG6gJqsU

Re:WiFi without internet on a Southwest flight by wannacboatmovie on Friday September 29, 2023 @07:27PM (#37711302)
Is this the thread where the web developers speculate wildly without facts or evidence and pretend to know more about airplanes than the aerospace engineers who built it?
Re:WiFi without internet on a Southwest flight by lr4444lr on Saturday September 30, 2023 @09:20AM (#37715185)
Maybe it would help if Boeing 737's crash wasn't making the case for such incompetence.
Re:WiFi without internet on a Southwest flight by hackmiester on Thursday September 28, 2023 @12:45PM (#37692220)
I tried to change the flight level by PATCHing altitude, but it seemed to require authentication. Oh well.
Re:WiFi without internet on a Southwest flight by CamperBob2 on Thursday September 28, 2023 @12:47PM (#37692249)
This sounds like a good way to meet some upset people with expensive sunglasses shortly after you land.
Re:WiFi without internet on a Southwest flight by jmharvey on Thursday September 28, 2023 @01:09PM (#37692595)
It's not like that at all. The sunglasses aren't that expensive.
Re:WiFi without internet on a Southwest flight by hackernewds on Thursday September 28, 2023 @01:21PM (#37692755)
after you land also open to interpretation
Re:WiFi without internet on a Southwest flight by elashri on Thursday September 28, 2023 @03:14PM (#37694275)
I imagine trying this and meet those people while my name is Mohamed :D.

PS:It is sarcasm and actually this is my name.

Re:WiFi without internet on a Southwest flight by ComputerGuru on Thursday September 28, 2023 @03:10PM (#37694207)
Maybe you can take risks like that, but I certainly can’t. I don’t think anyone with my name or skin color would be given the benefit of the doubt for even a moment.
Re:WiFi without internet on a Southwest flight by thomashop on Thursday September 28, 2023 @05:16PM (#37695996)
Your comment made my day. Eye opening
Re:WiFi without internet on a Southwest flight by foxhill on Friday September 29, 2023 @06:58PM (#37711083)
let me guess, you experience “random selection” events more than the expected amount?

apologies for joking. it must suck.

Re:WiFi without internet on a Southwest flight by ComputerGuru on Friday September 29, 2023 @10:04PM (#37712201)
Oh yes. Reminds me of the XKCD rand() comic!
Re:WiFi without internet on a Southwest flight by pwillia7 on Thursday September 28, 2023 @01:50PM (#37693116)
DELTE
Re:WiFi without internet on a Southwest flight by fnord77 on Thursday September 28, 2023 @01:50PM (#37693123)
Please stand by, a DHS agent will be with you shortly
Re:WiFi without internet on a Southwest flight by queuebert on Thursday September 28, 2023 @02:19PM (#37693515)
You probably can. I suspect airliner software is appallingly insecure.
Re:WiFi without internet on a Southwest flight by epse on Thursday September 28, 2023 @04:25PM (#37695329)
Relies very strongly on simple airgapping. Can't do anything to it if there's no wires in the direction you want. Can't remotely hack if there's nothing antenna connected that can talk to flight control. It has the luxury of not needing to do the "limited RCE" that is a modern web request
Re:WiFi without internet on a Southwest flight by inopinatus on Thursday September 28, 2023 @07:34PM (#37697368)
In the article above, in-flight wifi has an API reporting position, altitude, and velocity. That is a feed from avionics, which renders the claim of airgapped systems essentially null.
Re:WiFi without internet on a Southwest flight by nucleardog on Thursday September 28, 2023 @08:44PM (#37697937)
They could, for the sake of a ridiculous but clear example, have a display hooked up to the avionics and a camera hooked up to a separate computer which reads the values.

There are various ways of connecting systems while physically guaranteeing one way data flow—a fiber optic link with the transmitter removed from one end and the receiver removed from the other is basically a less silly “camera pointed at a display” and used in the real world.

You could argue the exact semantics of “air gapped”, but for the discussion here that’s accomplishing the same thing. The fact that the passenger network has some visibility into the avionics network is not, in and of itself, any indication of an issue.

Re:WiFi without internet on a Southwest flight by inopinatus on Thursday September 28, 2023 @10:44PM (#37698708)
“Maybe it’s just paint? Could be anything really”, the Antarctic explorer suggested, gazing at his blackened toes.
Re:WiFi without internet on a Southwest flight by upwardbound on Friday September 29, 2023 @05:41PM (#37710426)
+1. Instead of saying "airgap" a term I've seen for what you're describing is "data diode".
Re:WiFi without internet on a Southwest flight by hattmall on Thursday September 28, 2023 @11:06PM (#37698869)
The plane has a transponder that reports this information to the ground, ATC, other aircraft etc. The infotainment server has a receiver that gets this data. Or in some cases they instead pull it from a ground based service via the internet. The transponder is not able to receive signals, so it is air gapped.
Re:WiFi without internet on a Southwest flight by inopinatus on Friday September 29, 2023 @01:28AM (#37699618)
A quick review of published information reveals this claim as false. A typical airliner FMS feeds information to IFE via gateway devices. The integration is intended to be one-way. Airgapped they are not.

Such analytical delusions are the first step on the road to failing to adequately mitigate threats. As practiced by “it can’t happen here” school of fucking up.

Fortunately, it seems far more likely that aircraft system designers do not rely on any such assumption, and practice defence in depth, particularly with regard to integration. There was a good talk at DEFCON 22 by Phil Polstra on the matter.

Re:WiFi without internet on a Southwest flight by aftbit on Friday September 29, 2023 @02:22PM (#37708207)
Documentation please?
Re:WiFi without internet on a Southwest flight by inopinatus on Friday September 29, 2023 @05:05PM (#37710070)
The talk above is available online.
Re:WiFi without internet on a Southwest flight by Breza on Sunday October 08, 2023 @05:25PM (#37814562)
Reminds me of an episode of Leverage where they wanted to hack into Congress and change the text of a bill. In the show, it turned out everything was airgapped so they had to send a person to drop off a paper copy of the compromised bill. Hmm, that was also a plot line in Better Call Saul.
Re:WiFi without internet on a Southwest flight by remram on Thursday September 28, 2023 @01:22PM (#37692765)
You can use jq's string interpolation feature to simplify this:

    $ curl -s https://wifi.delta.com/api/flight-data | jq -r '"https://maps.google.com/?q=\(.latitude),\(.longitude)"'
Re:WiFi without internet on a Southwest flight by hackmiester on Thursday September 28, 2023 @02:56PM (#37694012)
Thanks! I was trying to figure this out but I didn't have great Internet access (for some reason...) so I just hacked it instead.
Re:WiFi without internet on a Southwest flight by shortrounddev2 on Thursday September 28, 2023 @10:56PM (#37698802)
In powershell

    Invoke-WebRequest https://wifi.delta.com/api/flight-data | ConvertFrom-Json | %{ "https://maps.google.com/?q=$($_.latitude),$($_.longitude)"
Re:WiFi without internet on a Southwest flight by eddieroger on Thursday September 28, 2023 @01:32PM (#37692890)
Interesting how they chose to make more general `vehicleId` instead of `planeId` or `tailNumber` or something. I wonder if Delta's fleet includes other things that have matching APIs to this one. I also wonder how much of their internal system structure one could learn from the `flightId` if they knew about other systems. It doesn't look like much beyond a composite key of otherwise knowable data, but still interesting.
Re:WiFi without internet on a Southwest flight by blcknight on Thursday September 28, 2023 @01:37PM (#37692945)
I doubt Delta made this. It’s an official the shelf product that can do ships, trains, planes, etc.
Re:WiFi without internet on a Southwest flight by eddieroger on Thursday September 28, 2023 @02:16PM (#37693478)
Valid point. It makes a lot of sense in that light instead.
Re:WiFi without internet on a Southwest flight by mulmen on Thursday September 28, 2023 @02:20PM (#37693533)
But they also have airplane/flight specific identifiers like “flightNumber”, “flightId”, “noseId(?)” and “airSpeed”. Maybe vehicleId is part of a base class or primary key somewhere and that abstraction is leaking.
Re:WiFi without internet on a Southwest flight by hackmiester on Thursday September 28, 2023 @03:00PM (#37694071)
Hey, a train has airspeed. :)
Re:WiFi without internet on a Southwest flight by mulmen on Thursday September 28, 2023 @03:11PM (#37694222)
Heh, true. I deliberately left out altitude because this is HN but you caught me anyway.

Presumably a train's groundSpeed and airSpeed are the same. If they diverge you have bigger problems than a JSON schema.

Is there a variant of this for ships? surfaceSpeed vs seaFloorSpeed?

Re:WiFi without internet on a Southwest flight by wasmitnetzen on Thursday September 28, 2023 @05:28PM (#37696136)
A train can easily run in a head- or tailwind in the same order of magnitude as its groundspeed.
Re:WiFi without internet on a Southwest flight by skykooler on Thursday September 28, 2023 @07:30PM (#37697336)
I've been tempted to mount a small anemometer to my car - by subtracting the groundspeed from the measured airspeed, one can get the wind speed and direction and figure out whether there is a headwind or tailwind and if so how strong. Theoretically this could be used to drive more efficiently, though the extra drag from the anemometer would probably cancel out any gains.
Re:WiFi without internet on a Southwest flight by mulmen on Thursday September 28, 2023 @08:23PM (#37697787)
Wow I got HN’ed twice in one thread. This is not my day.
Re:WiFi without internet on a Southwest flight by temp365984365 on Friday September 29, 2023 @04:31AM (#37700859)
Well, ships have apparent wind vs real wind and apparent course vs real course (currents and drift are a thing).
Re:WiFi without internet on a Southwest flight by MBCook on Thursday September 28, 2023 @11:01PM (#37698839)
Those could apply to an air taxi service or something using helicopters as well.
Re:WiFi without internet on a Southwest flight by danjc on Friday September 29, 2023 @11:14AM (#37705460)
"Official the shelf" - that your new iOS 17 update helping you out? ;)
Re:WiFi without internet on a Southwest flight by inopinatus on Thursday September 28, 2023 @07:36PM (#37697398)
Not all aircraft are planes.
Re:WiFi without internet on a Southwest flight by bunabhucan on Thursday September 28, 2023 @03:02PM (#37694105)
> "airspeed": null

[nervously looks out window]

Re:WiFi without internet on a Southwest flight by MBCook on Thursday September 28, 2023 @10:59PM (#37698823)
That’s just a sampling error. -NaN is when you get scared.
Re:WiFi without internet on a Southwest flight by CommieBobDole on Thursday September 28, 2023 @03:59PM (#37694960)
As always, there's a relevant XKCD:

https://xkcd.com/2170/

Re:WiFi without internet on a Southwest flight by denvaar on Thursday September 28, 2023 @04:38PM (#37695489)
What makes it so that you can only resolve the host wifi.delta.com during a flight?
Re:WiFi without internet on a Southwest flight by gsk22 on Thursday September 28, 2023 @05:25PM (#37696105)
I assume the DNS server on the in-flight router is programmed to resolve that hostname to some local device.

Similar to how I can log into my ASUS router from my home wifi by visiting asusrouter.com.

Re:WiFi without internet on a Southwest flight by PNWChris on Thursday September 28, 2023 @06:01PM (#37696456)
I have nothing insightful to add, I just want to say thanks for posting this!

I’m on a flight right now and just went to this URL. Sure enough, it works!

I know this information is available via the wifi portal’s UI, but a JSON blob just hits different.

```

{"timestamp":"2023-09-28T21:57:39Z","eta":"23:45","flightDuration":164,"flightNumber":"DAL992","latitude":47.4557876586914,"longitude":-111.73490905761719,"noseId":"3883","paState":false,"vehicleId":"N883DN","destination":"KMSP","origin":"KSEA","flightId":"N883DN_SF_20230928195737","airspeed":null,"airTemperature":null,"altitude":35273,"distanceToGo":13,"doorState":"Closed","groundspeed":499,"heading":95,"timeToGo":107,"wheelWeightState":"Off"}

```

Apologies for the JSON formatting, I’m on mobile.

Re:WiFi without internet on a Southwest flight by skykooler on Thursday September 28, 2023 @07:32PM (#37697351)
It'd be interested to make a little HTML page that can query the api for each airline that exposes something like this and give you an in-flight display on your laptop.