All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] test-pkg script can't handle captive portals. etc.
@ 2017-02-28 20:30 Marcus Hoffmann
  2017-03-01  8:46 ` Arnout Vandecappelle
  2017-03-01 20:06 ` Yann E. MORIN
  0 siblings, 2 replies; 5+ messages in thread
From: Marcus Hoffmann @ 2017-02-28 20:30 UTC (permalink / raw)
  To: buildroot

Hey,

I just ran into an issue with the test-pkg script.
When the TOOLCHAINS_URL returns an unexpected result,
(A router login page, when the Internet got disconnected, a captive
portal login page, a MITM attack, etc.) the script does weird things and
outputs something like this:

    html>: FAILED
<!DOCTYPE: FAILED
     HTML: FAILED
     HTML: ^[ORFAILED
     EN">:
[...]

It also creates the corresponding folders inside the test-dir.

You can test this when pointing the TOOLCHAINS_URL var to any html page.

This it not a very nice way to fail and may lead to harm when parsing
untrusted input from the web.

What would be the best way to handle this case? Can the Toolchain URL be
switched to https? This would eliminate the problem.

Otherwise we should do some sanity checking that no stray html page is
returned by the curl call. But this still doesn't solve the problem of a
malicious actor.

Best wishes,
Marcus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-01 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 20:30 [Buildroot] test-pkg script can't handle captive portals. etc Marcus Hoffmann
2017-03-01  8:46 ` Arnout Vandecappelle
2017-03-01 11:09   ` Marcus Hoffmann
2017-03-01 20:32   ` Thomas Petazzoni
2017-03-01 20:06 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.