What changed, and why it matters
This change adjusts how the Monero GUI wallet handles signed transaction files. Previously, submitting a transaction automatically imported related 'key images' from a companion file, and if either step failed the whole operation was reported as a failure. Now, submitting the transaction and importing key images are reported separately: a transaction can be reported as successfully sent even if the key-image import afterwards fails. This is primarily a user-experience and error-reporting change, not a direct security fix, but it could slightly affect how users perceive or respond to failures in a privacy-related step.
Review whether reporting a successful transaction despite a failed key-image import could mislead users or leave wallets in an inconsistent state. If key-image import failures are security or privacy relevant, consider showing a stronger warning, requiring explicit user acknowledgment, or offering a retry. Verify that the constructed '_keyImages' path cannot be abused via malicious file names, although the risk appears low in this context.
Security signals we found
Behavioral change in error handling: failure of key-image import no longer fails transaction submission
File path constructed by string concatenation (path + "_keyImages") in QML caller
No input sanitization or path validation visible in the diff
No cryptographic or memory-safety changes in the diff
Evidence from the diff
The patch splits two operations that used to be chained inside Wallet::submitTxFile: (1) submitTransaction and (2) importKeyImages. The C++ method now only submits the transaction and returns its success. The QML caller then explicitly calls importKeyImages on a companion file named ‘
Changed components
pages/Transfer.qmlsrc/libwalletqt/Wallet.cppInspect captured patch +11 / −13
### pages/Transfer.qml
@@ -1092,17 +1092,18 @@ Rectangle {
nameFilters: [ "signed transfers (*)"]
onAccepted: {
- if(!currentWallet.submitTxFile(walletManager.urlToLocalPath(selectedFile))){
- informationPopup.title = qsTr("Error") + translationManager.emptyString;
- informationPopup.text = qsTr("Can't submit transaction: ") + currentWallet.errorString
- informationPopup.onCloseCallback = null
- informationPopup.open();
- } else {
+ const path = walletManager.urlToLocalPath(selectedFile)
+ if (currentWallet.submitTxFile(path)) {
informationPopup.title = qsTr("Information") + translationManager.emptyString
- informationPopup.text = qsTr("Monero sent successfully") + translationManager.emptyString
- informationPopup.onCloseCallback = null
- informationPopup.open();
+ informationPopup.text = qsTr("Monero sent successfully") + translationManager.emptyString
+ if (!currentWallet.importKeyImages(path + "_keyImages"))
+ informationPopup.text += "\n\n" + currentWallet.errorString
+ } else {
+ informationPopup.title = qsTr("Error") + translationManager.emptyString
+ informationPopup.text = qsTr("Can't submit transaction: ") + currentWallet.errorString
}
+ informationPopup.onCloseCallback = null
+ informationPopup.open()
}
onRejected: {
console.log("Canceled")
### src/libwalletqt/Wallet.cpp
@@ -784,10 +784,7 @@ UnsignedTransaction * Wallet::loadTxFile(const QString &fileName)
bool Wallet::submitTxFile(const QString &fileName) const
{
qDebug() << "Trying to submit " << fileName;
- if (!m_walletImpl->submitTransaction(fileName.toStdString()))
- return false;
- // import key images
- return m_walletImpl->importKeyImages(fileName.toStdString() + "_keyImages");
+ return m_walletImpl->submitTransaction(fileName.toStdString());
}
void Wallet::commitTransactionAsync(PendingTransaction *t)Why this scored 24/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.