Arduino OTA lock fix.

This commit is contained in:
Blaz Kristan 2022-05-01 22:09:40 +02:00
parent e088f7a552
commit 9f71a6ab18
4 changed files with 144 additions and 144 deletions

View File

@ -57,7 +57,7 @@
</div> </div>
<h2>Security & Update setup</h2> <h2>Security & Update setup</h2>
Settings PIN: <input type="password" id="PIN" name="PIN" size="4" maxlength="4" minlength="4" onkeydown="checkNum(this)" pattern="[0-9]*" inputmode="numeric" title="Please enter a 4 digit number"><br> Settings PIN: <input type="password" id="PIN" name="PIN" size="4" maxlength="4" minlength="4" onkeydown="checkNum(this)" pattern="[0-9]*" inputmode="numeric" title="Please enter a 4 digit number"><br>
&#9888; Unencrypted transmission. Do NOT use your banking, door, or SIM pin!<br><br> <div style="color: #fa0;">&#9888; Unencrypted transmission. Be prudent when selecting PIN, do NOT use your banking, door, SIM, etc. pin!</div><br><br>
Lock wireless (OTA) software update: <input type="checkbox" name="NO"><br> Lock wireless (OTA) software update: <input type="checkbox" name="NO"><br>
Passphrase: <input type="password" name="OP" maxlength="32"><br> Passphrase: <input type="password" name="OP" maxlength="32"><br>
To enable OTA, for security reasons you need to also enter the correct password!<br> To enable OTA, for security reasons you need to also enter the correct password!<br>
@ -67,7 +67,7 @@
Deny access to WiFi settings if locked: <input type="checkbox" name="OW"><br><br> Deny access to WiFi settings if locked: <input type="checkbox" name="OW"><br><br>
Factory reset: <input type="checkbox" name="RS"><br> Factory reset: <input type="checkbox" name="RS"><br>
All settings and presets will be erased.<br><br> All settings and presets will be erased.<br><br>
&#9888; HTTP traffic is unencrypted. An attacker in the same network can intercept form data! <div style="color: #fa0;">&#9888; Unencrypted transmission. An attacker on the same network can intercept form data!</div>
<hr> <hr>
<h3>Software Update</h3> <h3>Software Update</h3>
<button type="button" onclick="U()">Manual OTA Update</button><br> <button type="button" onclick="U()">Manual OTA Update</button><br>
@ -75,9 +75,9 @@
<hr> <hr>
<h3>Backup & Restore</h3> <h3>Backup & Restore</h3>
<a class="btn lnk" href="/presets.json?download" target="download-frame">Backup presets</a><br> <a class="btn lnk" href="/presets.json?download" target="download-frame">Backup presets</a><br>
<div>Restore presets<br><input type="file" name="data" accept=".json"> <input type="button" value="Upload" onclick="uploadFile(d.Sf.data,'/presets.json');"><br></div><br> <div>Restore presets<br><input type="file" name="data" accept=".json"> <button type="button" onclick="uploadFile(d.Sf.data,'/presets.json');">Upload</button><br></div><br>
<a class="btn lnk" href="/cfg.json?download" target="download-frame">Backup configuration</a><br> <a class="btn lnk" href="/cfg.json?download" target="download-frame">Backup configuration</a><br>
<div>Restore configuration<br><input type="file" name="data2" accept=".json"> <input type="button" value="Upload" onclick="uploadFile(d.Sf.data2,'/cfg.json');"><br></div> <div>Restore configuration<br><input type="file" name="data2" accept=".json"> <button type="button" onclick="uploadFile(d.Sf.data2,'/cfg.json');">Upload</button><br></div>
<div style="color: #fa0;">&#9888; Restoring presets/configuration will OVERWRITE your current presets/configuration.<br> <div style="color: #fa0;">&#9888; Restoring presets/configuration will OVERWRITE your current presets/configuration.<br>
Incorrect configuration may require a factory reset or re-flashing of your ESP.</div> Incorrect configuration may require a factory reset or re-flashing of your ESP.</div>
For security reasons, passwords are not backed up. For security reasons, passwords are not backed up.

View File

@ -1295,139 +1295,139 @@ const uint8_t PAGE_settings_time[] PROGMEM = {
// Autogenerated from wled00/data/settings_sec.htm, do not edit!! // Autogenerated from wled00/data/settings_sec.htm, do not edit!!
const uint16_t PAGE_settings_sec_length = 2091; const uint16_t PAGE_settings_sec_length = 2095;
const uint8_t PAGE_settings_sec[] PROGMEM = { const uint8_t PAGE_settings_sec[] PROGMEM = {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x95, 0x58, 0x6d, 0x73, 0xd3, 0xb8, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xa5, 0x58, 0x6b, 0x6f, 0xdb, 0x38,
0x16, 0xfe, 0x9e, 0x5f, 0xa1, 0x98, 0x19, 0x36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 0xfa, 0x2f, 0x54, 0x28, 0x95, 0x12, 0xe6, 0x74, 0x10, 0x9a, 0x6a, 0x40, 0x46, 0x04, 0x8e, 0x16, 0x82, 0xce, 0x4b, 0x15, 0x49, 0xa5, 0x84, 0x79,
0x71, 0x71, 0x3e, 0x11, 0x03, 0x15, 0x26, 0x05, 0xb7, 0xf6, 0x5c, 0x5a, 0x17, 0xf2, 0x34, 0xed, 0x3b, 0xb9, 0x38, 0x1f, 0x88, 0x50, 0x45, 0x49, 0xce, 0xad, 0x3d, 0x97, 0xd6, 0x45, 0x3c, 0x4d,
0xb9, 0x97, 0x81, 0x30, 0x46, 0x9b, 0xe0, 0x79, 0x40, 0xd2, 0x82, 0xfe, 0x20, 0x29, 0x04, 0x37, 0xdb, 0xee, 0x55, 0x20, 0x8c, 0xd1, 0x26, 0x78, 0x11, 0x90, 0xb4, 0xa0, 0x13, 0x26, 0xb9, 0xe0,
0x8b, 0x3a, 0x22, 0xbd, 0x26, 0x32, 0x7d, 0x9c, 0xb3, 0x6e, 0x5b, 0x88, 0x90, 0x2b, 0xb9, 0xe6, 0x66, 0x52, 0x45, 0xa4, 0x5d, 0x47, 0xa6, 0x83, 0x73, 0xd6, 0xad, 0x73, 0x11, 0x71, 0x25, 0x97,
0xa4, 0x7c, 0x12, 0x28, 0xad, 0x00, 0x41, 0xb3, 0x63, 0x02, 0x00, 0xdb, 0x43, 0xbd, 0xd6, 0x40, 0x9c, 0x94, 0x0f, 0x02, 0xa5, 0x15, 0x20, 0xa8, 0x77, 0x0c, 0x00, 0x60, 0x73, 0xa8, 0xdd, 0x18,
0xe0, 0x76, 0xa8, 0xcf, 0x88, 0xb5, 0xbe, 0x15, 0xbd, 0x46, 0xd1, 0xd7, 0xfe, 0x60, 0xf4, 0xec, 0x08, 0xdc, 0x76, 0xf5, 0x19, 0xb1, 0xd4, 0x77, 0xa2, 0x5d, 0x2b, 0xfa, 0xda, 0x09, 0x7b, 0xcf,
0xe8, 0xe8, 0xc0, 0x9d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0x9c, 0x96, 0xe9, 0xef, 0xd1, 0x10, 0x6b, 0x2a, 0x17, 0x8d, 0xbb, 0x2c, 0xa9, 0x3b, 0x6e, 0x4c, 0x8d, 0x07, 0x90, 0x79, 0xc6, 0x69, 0xb8, 0xfe, 0x1e, 0x0f, 0x35, 0x0d,
0xf8, 0xf6, 0xb9, 0x7f, 0xb0, 0x92, 0xbb, 0x7e, 0x19, 0x1f, 0x74, 0x79, 0xa7, 0x9b, 0x3c, 0xfd, 0x10, 0x5d, 0xbd, 0xc8, 0xf9, 0xfa, 0x85, 0x7f, 0x0e, 0x93, 0xbb, 0x7e, 0x19, 0x1f, 0xf4, 0x34,
0x4f, 0xcb, 0x3f, 0x67, 0x3a, 0xc3, 0x9d, 0x79, 0x11, 0x00, 0x00 0xa0, 0x77, 0x02, 0xfd, 0x1f, 0xe7, 0xff, 0xcc, 0x96, 0x5c, 0x68, 0xd7, 0x11, 0x00, 0x00
}; };

View File

@ -83,7 +83,7 @@ void WLED::loop()
{ {
if (apActive) dnsServer.processNextRequest(); if (apActive) dnsServer.processNextRequest();
#ifndef WLED_DISABLE_OTA #ifndef WLED_DISABLE_OTA
if (WLED_CONNECTED && aOtaEnabled) ArduinoOTA.handle(); if (WLED_CONNECTED && aOtaEnabled && !otaLock && correctPIN) ArduinoOTA.handle();
#endif #endif
handleNightlight(); handleNightlight();
handlePlaylist(); handlePlaylist();

View File

@ -11,6 +11,7 @@ void setStaticContentCacheHeaders(AsyncWebServerResponse *response);
static const char s_redirecting[] PROGMEM = "Redirecting..."; static const char s_redirecting[] PROGMEM = "Redirecting...";
static const char s_content_enc[] PROGMEM = "Content-Encoding"; static const char s_content_enc[] PROGMEM = "Content-Encoding";
static const char s_unlock_ota [] PROGMEM = "Please unlock OTA in security settings!"; static const char s_unlock_ota [] PROGMEM = "Please unlock OTA in security settings!";
static const char s_unlock_cfg [] PROGMEM = "Please unlock settings using PIN code!";
//Is this an IP? //Is this an IP?
bool isIp(String str) { bool isIp(String str) {
@ -24,8 +25,8 @@ bool isIp(String str) {
} }
void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t index, uint8_t *data, size_t len, bool final) { void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t index, uint8_t *data, size_t len, bool final) {
if (otaLock || !correctPIN) { if (!correctPIN) {
if (final) request->send(500, "text/plain", FPSTR(s_unlock_ota)); if (final) request->send(500, "text/plain", FPSTR(s_unlock_cfg));
return; return;
} }
if (!index) { if (!index) {
@ -64,8 +65,7 @@ void createEditHandler(bool enable) {
#endif #endif
} else { } else {
editHandler = &server.on("/edit", HTTP_ANY, [](AsyncWebServerRequest *request){ editHandler = &server.on("/edit", HTTP_ANY, [](AsyncWebServerRequest *request){
serveMessage(request, 500, "Access Denied", /*otaLock ? FPSTR(s_unlock_ota) :*/ F("Please enter PIN in settings!"), 254); serveMessage(request, 500, "Access Denied", FPSTR(s_unlock_cfg), 254);
//serveSettings(request,request->method() == HTTP_POST); // request PIN
}); });
} }
} }
@ -255,7 +255,7 @@ void initServer()
request->send(response); request->send(response);
}); });
createEditHandler(correctPIN /*&& !otaLock*/); createEditHandler(correctPIN);
#ifndef WLED_DISABLE_OTA #ifndef WLED_DISABLE_OTA
//init ota page //init ota page
@ -546,7 +546,7 @@ void serveSettings(AsyncWebServerRequest* request, bool post)
} }
if (subPage == 252) { if (subPage == 252) {
createEditHandler(correctPIN /*&& !otaLock*/); createEditHandler(correctPIN);
} else } else
strcat_P(s, PSTR(" settings saved.")); strcat_P(s, PSTR(" settings saved."));
@ -574,7 +574,7 @@ void serveSettings(AsyncWebServerRequest* request, bool post)
case 9: response = request->beginResponse_P(200, "text/html", PAGE_update, PAGE_update_length); break; case 9: response = request->beginResponse_P(200, "text/html", PAGE_update, PAGE_update_length); break;
case 251: { case 251: {
correctPIN = !strlen(settingsPIN); // lock if a pin is set correctPIN = !strlen(settingsPIN); // lock if a pin is set
createEditHandler(correctPIN /*&& !otaLock*/); createEditHandler(correctPIN);
serveMessage(request, 200, strlen(settingsPIN) > 0 ? PSTR("Settings locked") : PSTR("No PIN set"), FPSTR(s_redirecting), 1); serveMessage(request, 200, strlen(settingsPIN) > 0 ? PSTR("Settings locked") : PSTR("No PIN set"), FPSTR(s_redirecting), 1);
return; return;
} }